Home > Mobile >  npx-create-react-app my-app command ERROR in Vs Code
npx-create-react-app my-app command ERROR in Vs Code

Time:12-02

npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, 
verify that the path is correct and try again.
At line:1 char:1
  npx create-react-app my-app
  ~~~
      CategoryInfo          : ObjectNotFound: (npx:String) [], CommandNotFoundException
      FullyQualifiedErrorId : CommandNotFoundException

CodePudding user response:

You should install npx globally, try this:

npm i -g npx

On mac/linux use sudo:

sudo npm i -g npx

CodePudding user response:

have you install the Node.Js?

https://nodejs.org/en/download/

if so, it's probably a "PATH environment variable" issue

Fixing npm path in Windows 8 and 10

  • Related