'npm install' extremely slow on Windows

后端 未结 13 1686
面向向阳花
面向向阳花 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 05:11

    Fully turning off virus and firewall protection isn't the safest option. While it makes things faster, it leaves you more vulnerable.

    In my case, I only excluded the node.exe process in virus & threat protection.

    • In your start menu, type "windows security" and open the app.
    • Click on "Virus & threat protection"
    • Virus & threat protection settings => Manage settings
    • Exclusions => Add or remove exclusions
    • Add an exclusion => process => type node.exe => click Add

    just a simple create-react-app went down from 2m40s to 1m10s npm commands are also executed by node.exe, so the same improvements are noticed there.

    0 讨论(0)
提交回复
热议问题