Skip to main content

Notifications

Community site session details

Community site session details

Session Id : /Nt/YNhDaev68JZWvDagey
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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 75 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 53 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 38

Overall leaderboard
Loading started