沈靖禧
沈靖禧

Reputation: 3

'npm install' hangs when trying to execute 'npm install express mongoose --save'

I'm trying to install Node JS packages in command prompt using npm install express mongoose --save and it got stuck when installing with the message 'sill audit bulk request' so may I ask any methods to solve the issue?

I expected the installation won't get stuck because I installed node JS and I also tried to uninstall and reinstall but still does not work

Upvotes: 0

Views: 8704

Answers (2)

Kaio_Borges
Kaio_Borges

Reputation: 1

I was having the same error, i managed to solve it updating my node version, it was on v16.0.4, and only when updating for the latest, did it stop crashing.

Upvotes: 0

This kind of error happened for many reasons, here are several things you can check:

Check your connection:

  • Make sure your internet can access the website.

Update npm to the latest version:

  • npm i -g npm@latest

Verify and clear the cache:

  • npm cache verify
  • npm cache clean -force

Remove node_modules and package-lock.json:

  • rm -rf node_modules
  • rm package-lock.json

It worked!

Upvotes: 0

Related Questions