web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PAC: npm start exited ...
Power Apps
Answered

PAC: npm start exited with code 1

(0) ShareShare
ReportReport
Posted on 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!

I have the same question (0)
  • Verified answer
    krombipils Profile Picture
    19 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 408

#2
WarrenBelz Profile Picture

WarrenBelz 382 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 328 Super User 2025 Season 2

Last 30 days Overall leaderboard