Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

PAC: npm start exited with code 1

Like (0) ShareShare
ReportReport
Posted on 17 Mar 2020 19:11:20 by 19

Hi,

 

I'm trying to understand PCF and I'm following the 'Create your first component' tutorial. npm run build completes without errors, but I cannot debug my component. npm start complains about 'The specified codePath 'out\controls\TSLinearInputComponent' does not exist.'

 

pac.png

 

But actually there is a out\controls\TSLinearInputComponent directory containing bundle.js and ControlManifest.xml.

Something wrong with my path environment settings? I'm developing on windows...

 

Thank you!

  • Verified answer
    krombipils Profile Picture
    19 on 18 Mar 2020 at 07:24:38
    Re: PAC: npm start exited with code 1

    Problem is solved. I was using a solution from https://stackoverflow.com/a/4896002/2075207 to setup the start directory for cmd.exe (I set this up a long time ago). Unfortunately this breaks node's process.cwd() and therefore the right directory wasn't found.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard