Sinan Tosun
Sinan Tosun

Reputation: 37

Npm install not completing. How do i fix the problem

It's been 30 minutes but still not uploaded. How do i fix the problem MY PROBLEM

Upvotes: 2

Views: 20847

Answers (4)

Mukendi Emmanuel
Mukendi Emmanuel

Reputation: 198

after launching the npm install command, npm will read the package.json file, precisely in the "scripts" section. it will automatically launch the "install" script if there is one. now if in the configuration you have something like "install": "npm install ". npm will therefore relaunch the installation command and so on in repetition.

"scripts": {
 "build": "npm build --environment=production",
 "start": "npm start",
 *"install": "npm install"* 
 "test": "npm-run-all lint test:*",
},

Upvotes: 0

Veer-Khatri
Veer-Khatri

Reputation: 35

you can reinstall nodejs or use npm update to fix this if it doesn't work then check the documentation of the library

Upvotes: 1

suyashpatil
suyashpatil

Reputation: 246

You can do following steps which possibly will fix this.

  1. Press Ctrl + 'C' to stop the process.
  2. Delete the npm_modules folder and package-lock.json file and run npm cache clean --force.
  3. Reinstall the modules with npm install.

Upvotes: 1

shadi1999
shadi1999

Reputation: 59

try to remove the node_modules directory and the package-lock.json file and reinstall by npm i

this might help

Upvotes: 1

Related Questions