web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / 'pcf-scripts' is not r...
Power Apps
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

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    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
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

  • dkrishna Profile Picture
    24 on at

    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
    Microsoft Employee on at

    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,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard