I installed npm-run-all and also configured the environment variable (which may or may not be not required) on my Windows machine but am getting an error:
'npm-run-all' is not recognized as an internal or external command, operable program or batch file
I am trying to build my current project with npm run build
which includes the script where the error is thrown:
npm-run-all -p build-css build-webpack
Do I have to do any additional things to make it run?
npm is not recognized as internal or external command operable program or batch file. I figured out that node js is installed in C:\Program Files\nodejs. Opening a command prompt in this directory makes npm work fine.
To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in your project's root directory and install the react-scripts package by running npm install react-scripts and clear your npm cache if necessary.
npm-run-all
is in your package.json devDependencies
.npm-run-all
is present in your package.json, run npm i
npm i npm-run-all -D
If error is still present, follow these steps:
rm -rf node_modules
npm i
Hope this helps!
You may just need to run the following command first (from the directory with the package.json file)
npm install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With