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 / Getting error while bu...
Power Apps
Answered

Getting error while building PCF Control "'pcf-scripts' is not recognized as an internal or external command"

(0) ShareShare
ReportReport
Posted on by 36

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

error2.png
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    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:

    https://github.com/MicrosoftDocs/powerapps-docs/issues/756

    Please run the following command:

    npm i -g

    to install devDependencies globally firstly, then run your 'pcf-script' command again.

     

    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,

  • Verified answer
    ScottDurow Profile Picture
    1,039 on at

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard