npm 升级 npm

    技术2022-07-11  140

    npm 升级 npm

    Good news! npm was updated in January and this is no longer an issue!

    好消息! npm已在一月更新,这不再是问题!

    npm is the premier package repository on the web and we all use it a ton, obviously.  npm has started using basic progress bar graphics to notify users of download progress, which is nice, but appears to slow down the entire process.  This tweet blew my mind:

    npm是网络上最重要的软件包存储库,显然,我们每个人都大量使用它。 npm已经开始使用基本的进度条图形来通知用户下载进度,这很好,但是似乎减慢了整个过程。 这条鸣叫令我震惊:

    It sounds crazy, but disabling npm's progress bar yields a 2x npm install speed improvement for me pic.twitter.com/ChXxSepCBK

    — Gavin Joyce (@gavinjoyce)

    听起来很疯狂,但是禁用npm的进度条对我来说将npm安装速度提高了2倍pic.twitter.com/ChXxSepCBK

    — Gavin Joyce(@gavinjoyce) January 26, 2016 2016年1月26日

    Executing the following before an npm install dramatically speeds up the process:

    在npm install之前执行以下操作可以大大加快该过程:

    npm set progress=false

    You wont see a beautiful progress bar but you will get faster installs which, in my opinion, is an excellent trade off!

    您不会看到漂亮的进度条,但安装速度会更快,我认为这是一个极好的折衷方案!

    翻译自: https://davidwalsh.name/faster-npm

    npm 升级 npm

    Processed: 0.009, SQL: 9