Skip to main content
Community site session details

Community site session details

Session Id : KJRCuCIkRl3/ZgUuILJ8Gd
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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete