npm run build broken on Windows
See original GitHub issueWith the latest node (7), npm, and fsrrlr just downloaded today, npm run build
gives:
...
> rm -rf ./public/dist
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v7.3.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! feathers-starter-react-redux-login-roles@0.2.4 prebuild: `rm -rf ./publ
ic/dist`
npm ERR! Exit status 1
...
(but the dev env launches fine BTW, awesome work 😃 )
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
NPM run build not working in Windows specific directory
install Git; go to project folder and right click to access context menu; from there run Git bash here; run the command: npm...
Read more >npm run build fails under windows · Issue #8410 - GitHub
Then npm start failed with npm run build error. I manually resolved the problem by running node_modules/.bin/tsc.cmd and node index.js writehash
Read more >npm run build command fails - Salesforce Stack Exchange
Windows still has some tweaks necessary, if you look in package.json in the scripts field you'll see the run command, which probably looks ......
Read more >Problem with npm run build - Questions - n8n community
I download from git the project and I get an error when try running np, run build.
Read more >"The NPM script 'start' exited without indicating that the create ...
I've executed "npm install" and a lot of npm commands I've seen in similar questions online. I've updated npm, node.js and visual studio....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for catching this.
Scheduling a fix. You can change the command to rimraf and add rimraf to package.json.
Per https://github.com/eddyystop/feathers-starter-react-redux-login-roles/issues/11#issuecomment-269870594 ,
npm run win:build:devserver
also works. Everything working in dev mode!