cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dkrish2020
Helper I
Helper I

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

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

4 REPLIES 4
HemantG
Power Apps
Power Apps

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
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

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...

 

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-exist...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,612)