Announcements
I encountered the error below upon running the "npm run build" command, and the nodemodules were installed via the "npm install" command. Despite attempting all the solutions provided in the reference, none have proven effective.
and it's working for other project from the same VS Code.
https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/Getting-error-while-building-PCF-Control-quot-pcf-scripts-is-not/m-p/580774#M2643
npm run build
> pcf-project@1.0.0 build Searching for availa> pcf-scripts build re \\nfcu.net\user\ho'pcf-scripts' is not recognized as an internal or external command,operable program or batch file.
In your package.json you've got something like this?
"devDependencies": { "pcf-scripts": "^1" }
If not try installing pcf-script
npm i -g pcf-scripts
Yes, My package.json has the below and ran the below command but didn't work.npm i -g pcf-scripts
Maybe install those dependencies first by running:
npm i -g
Also, make sure you're running the commands at the appropriate levels (i.e. if you're running from the wrong folders). See here - https://learn.microsoft.com/en-us/power-apps/developer/component-framework/create-custom-controls-using-pcf#create-a-new-component
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 1,033
Valantis 632
11manish 607