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

(0) ShareShare
ReportReport
Posted on by 24

Hello ,

Trying to build new pcf control and getting below error on build and test . Please suggest how to fix.
i have installed node.js 12.6.0.

Capture.PNG

  • v-xida-msft Profile Picture
    on at
    Re: 'pcf-scripts' is not recognized as an internal or external command

    Hi @dkrish2020 ,

    Currently, I could not reproduce your issue on my side. Have you taken a try with the pac pcf init command to create your PCF control project?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

    3.JPG

     

    If you have installed PowerApps CLI Tool in your PC, please consider open "Developer Command Prompt for VS 2017" window (If you have installed Visual Studio 2017 on your PC), then run the following command to create your PCF control project:

     

    npm start watch

     

    In addition, before you execute above command, please run the following command to build your project:

    npm run build

     

    Please check the following sample project for more details about initializing a PCF project:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/implementing-controls-using-typescript

     

    If you just want to create a PCF control through XRM Tool, please check and see if the following article would help in your scenario:

    https://nishantrana.me/2019/10/22/using-pcf-custom-control-builder-xrmtoolbox-plugin-to-update-existing-control-in-dynamics-365-powerapps/

     

    Best regards,

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

    Hello,

     

    I have installed power apps CLI and tried with below command. But still getting same error. Pls let me know if anything missing

    npm i -g

  • v-xida-msft Profile Picture
    on at
    Re: 'pcf-scripts' is not recognized as an internal or external command

    Hi @dkrish2020 ,

    Have you installed the 'pcf-script' package within your PC?

    Do you want to create a PowerApps Component Framework Control on your side?

    Further, have you installed Microsoft Power Apps CLI  tool in your PC?

     

    If you want to create a PowerApps Component Framework control on your side, Microsoft PowerApps CLI Tool may be your Choice. Please check and see if the following article would help in your scenario:

    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.

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Hemant Gaur Profile Picture
    on at
    Re: 'pcf-scripts' is not recognized as an internal or external command
    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

    Hemant

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

🌸 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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard