'npm install' extremely slow on Windows

后端 未结 13 1684
面向向阳花
面向向阳花 2020-12-24 04:35

For me is npm install extremely slow. I\'m using Windows 8.1 with the latest npm version. My connection speed is around 100Mbit/s.

The project I\'m tryi

13条回答
  •  囚心锁ツ
    2020-12-24 04:51

    I faced the same issue while creating project while using angular cli "ng new PROJECT_NAME" this command triggers "npm -install" after creation of project, which took too long to install, and got stuck at "Installing packages for tooling via npm" . Follow these which worked for me

    1) Check your npm version "npm --version" (must be higher than 2.1.8)Update your npm package by "npm -g install --save latest-version"

    2) Remove the progress bar which consumes more time "npm set progress=false"

    check this issues if still doesn't fix your problem https://github.com/nodejs/node/issues/4150 https://github.com/npm/npm/issues/11283

    Hopefully this sorts the problem Cheers!

提交回复
热议问题