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

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

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support
Community Support

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

 

 

Best regards,

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

View solution in original post

Highlighted

It looks like you simply haven't run npm install yet:

npm install
npm start watch

 

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

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

 

 

Best regards,

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

View solution in original post

Highlighted

It looks like you simply haven't run npm install yet:

npm install
npm start watch

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Users online (8,093)