Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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.

  • skoofy5 Profile Picture
    480 on at
    Re: pcf-scripts' is not recognized as an internal or external command : PCF

    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

     

  • DynamicsHulk365 Profile Picture
    21 on at
    Re: pcf-scripts' is not recognized as an internal or external command : PCF

    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
    480 on at
    Re: pcf-scripts' is not recognized as an internal or external command : PCF

    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

     

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard