DEV Community

Sachin
Sachin

Posted on

npm build / npm run build trows an error

Thing I've tried:

  • Tried running npm run-script build

  • Tried doing npm cache clean --force

  • Tried deleting node_modules folder then using npm cache clean --force and then doing npm install

  • i even tried installing run-script after i got "'run-script' is not recognized as an internal or external command" error

Nothing worked, i have no idea why i'm getting this error. if anyone can tell me the reason that'd be great. sorry for the trouble

Error i'm getting:
'run-script' is not recognized as an internal or external command,

operable program or batch file.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! react-portfolio@0.1.0 build: run-script build

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the react-portfolio@0.1.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Top comments (2)

Collapse
 
thesnowmanndev profile image
Kyle Martin

I’m not sure this is what dev.to is for. Stackoverflow is probably the best place to post stuff like this.

Collapse
 
00sachin00 profile image
Sachin

they banned me from asking questions for some reasons, so i just googled for alternatives, and this was one of them i found, also they should specify what it's for.