cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SumitThakran
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
v-yutliu-msft
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

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

npm install
npm start watch

 

View solution in original post

2 REPLIES 2
v-yutliu-msft
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

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

npm install
npm start watch

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (63,822)