I got this error message when I was tried to create a react project with command "npx create-react-app"
to do so you will firstly install create-react-app to globally with this command "npm i -g create-react-app"
then you have to do to run "npm root -g" see if the folder directory and make sure it is contained a file with the format ".cmd" if yes so you have to put that directory into path variable and done
to do so you will firstly install create-react-app to globally with this command "npm i -g create-react-app"
then you have to do to run "npm root -g" see if the folder directory and make sure it is contained a file with the format ".cmd" if yes so you have to put that directory into path variable and done
No comments:
Post a Comment