Notifications
Announcements
Hi ,
I am getting error while building PCF Control "'pcf-scripts' is not recognized as an internal or external command"
Error Screenshot also attached too.
I followed steps given in below existing same type of issue but did not get my error resolved.
https://github.com/MicrosoftDocs/powerapps-docs/issues/756
Thanks
Hi @SumitThakran ,
Please validate the installation using the CLI directly. Check out the steps here. Reinstalling CLI might help if there are any manual steps performed earlier.https://docs.microsoft.com/en-us/powerapps/developer/component-framework/get-powerapps-cli
If you want to create PCF control using the 'pcf-scripts' command directly, please check the solution within the following article:
Please run the following command:
npm i -g
to install devDependencies globally firstly, then run your 'pcf-script' command again.
devDependencies
Here's a similar issue for your reference:
https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/pcf-scripts-is-not-recognized-as-an-internal-or-external-command/td-p/433239
Best regards,
It looks like you simply haven't run npm install yet:
npm install npm start watch
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Kalathiya 402
WarrenBelz 380 Most Valuable Professional
MS.Ragavendar 293 Super User 2025 Season 2