question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run build broken on Windows

See original GitHub issue

With 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:closed
  • Created 7 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
eddyystopcommented, Dec 30, 2016

Thanks for catching this.

Scheduling a fix. You can change the command to rimraf and add rimraf to package.json.

1reaction
IBwWGcommented, Dec 31, 2016

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found