npm scripts not working

Rick_HK
1 min readMay 28, 2020

--

Have you ever tried to run “npm start” or “npm build” in your, say, reacts project, and it does not do anything?

If you pretty much confirm that it is not your programming errors nor environmental issue nor config issue and you google this issue for hours and got nothing working, you can try check for followings .

  1. check whether npm is set to ignore running script
npm config get ignore-scripts

2. If it returns true, set it to false.

npm config set ignore-scripts false

Now you can try running your npm scripts again ;)

--

--

Rick_HK
Rick_HK

Written by Rick_HK

Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter https://twitter.com/rick3817

No responses yet