解决npm下载慢问题:更换源、使用代理、加速工具等方法
D:\智能家居GIT\test_py\passkeys\threema-web-master>npm install\n\n\npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs\n\npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs\n\npm WARN deprecated angular-aria@1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\npm WARN deprecated angular-sanitize@1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\npm WARN deprecated angular-route@1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\npm WARN deprecated angular-animate@1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\npm WARN deprecated messageformat@2.3.0: Package renamed as '@messageformat/core', see messageformat.github.io for more details. 'messageformat@4' will eventually provide a polyfill for Intl.MessageFormat, once it's been defined by Unicode & ECMA.\n\npm WARN deprecated angular@1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.\n\npm WARN deprecated angular-material@1.2.5: For the actively supported Angular Material, see https://www.npmjs.com/package/@angular/material. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.\n\n[##################] | reify:date-fns: timing reifyNode:node_modules/core-js Completed in 9989ms\n\n如何解决下载慢内容:解决下载慢的问题可以尝试以下几种方法:\n\n1. 更换npm源:可以将npm源切换到国内镜像源,如淘宝镜像、cnpm等,可以提升下载速度。可以使用以下命令更换npm源:\n \n npm config set registry https:\/\/registry.npm.taobao.org\n \n\n2. 使用代理服务器:如果你所在的网络环境限制了对npm的访问速度,可以使用代理服务器进行下载。可以在npm命令前添加代理参数,例如:\n \n npm install --proxy http:\/\/proxy.example.com:8080\n \n\n3. 使用加速工具:有一些专门用于加速npm下载的工具,如cnpm、yarn等。可以尝试使用这些工具进行下载。\n\n4. 使用自己搭建的npm镜像源:如果你有自己的服务器,可以搭建一个npm镜像源,将常用的npm包缓存在本地服务器上,以提高下载速度。\n\n5. 使用VPN:如果你所在的网络环境限制了对npm的访问速度,可以尝试使用VPN进行下载,以改变网络访问路径。\n\n希望以上方法可以帮助你解决下载慢的问题。
原文地址: https://www.cveoy.top/t/topic/p7D4 著作权归作者所有。请勿转载和采集!