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 / pcf-scripts' is not re...
Power Apps
Unanswered

pcf-scripts' is not recognized as an internal or external command : PCF

(0) ShareShare
ReportReport
Posted on by 21

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.

I have the same question (0)
  • skoofy5 Profile Picture
    482 on at

    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

     

  • DynamicsHulk365 Profile Picture
    21 on at

    Yes, My package.json has the below and ran the below command but didn't work.
    npm i -g pcf-scripts

     

     

    "devDependencies": {
        "@types/uuid": "^8.3.0",
        "pcf-scripts": "^1",
        "pcf-start": "^1"
      }
     
     
  • skoofy5 Profile Picture
    482 on at

    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.

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
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard