How to fix 'rimraf is not a recognized command' in Windows 10
I had to manually run npm install to make it work.
open command line (e.g. from Visual Studio: Tools -> Command Line -> Developer Command Prompt)
go to ClientApp (cd ClientApp
) folder of your project and type:
npm install
install:
npm install rimraf --save-dev
set your custom command in package.json:
"scripts": { "build": "node_modules/.bin/rimraf build && tsc", "start": "node build/index.js"}
Use it
npm run build
I finally got rid of this error by installing rimraf globally
npm install rimraf -g