npm install is stuck.

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rachel S
    Senior Member
    • Apr 2022
    • 138

    npm install is stuck.

    I was installing react and the wheel never stops spinning. I left my VPS for over 30 minutes and this keeps happening with all modules, next, remix, vue, etc.
    • npm config rm proxy
    • npm config rm https-proxy
    None of these commands solved the issue. Any advice would be appreciated.
  • Ryaan J.
    Senior Member
    • Apr 2022
    • 132

    #2

    One possible reason is that the wrong proxy is configured, which prevents npm from downloading packages.

    So the best advice is to see the output of:

    $ npm install --verbose

    , and identify the problem. If you have never configured a proxy, then possible causes can be
    • Very outdated npm version.
    • Some problem with your internet connection.
    • Permissions are not sufficient for npm to modify files.

    You can also try deleting package-lock.json and running npm install afterward. This worked for me..

    Comment

    Working...
    X