【发布时间】:2022-01-10 20:08:02
【问题描述】:
我正在尝试安装 VUE/CLI,但在安装过程中出现多个错误。我使用 Visual Studio Code 命令行终端和 Node\npm 与命令行屏幕,我仍然得到相同的结果。
-
我得到了最新版本的 NodeJS (v16.13.1) 和 NPM (8.3.0)。
-
运行 npm install -g @vue/cli
-
收到错误 npm ERR!无法读取 null 的属性(读取“pickAlgorithm”) npm 错误!可以在以下位置找到此运行的完整日志:
-
阅读了类似的帖子,我运行了 npm cache ckear --force
-
再次运行 npm install -g @vue/cli。
-
安装过程在此过程中挂起:reify:rxjs: http fetch GET 200 https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz16557ms (cache miss)
-
得到错误:6455 错误代码 ECONNRESET 6456 错误系统调用读取
6457 error errno -4077 6458 error network read ECONNRESET 6459 error network This is a problem related to network connectivity. 6459 error network In most cases you are behind a proxy or have bad network settings. 6459 error network 6459 error network If you are behind a proxy, please make sure that the 6459 error network 'proxy' config is set properly. See: 'npm help config' 6460 verbose exit -4077 -
我尝试使用 npm config rm proxy 和 npm config rm https-proxy,但没有成功。
-
我按照上述步骤再次重试并得到 npm 错误!代码 FETCH_ERROR npm 错误!错误号 FETCH_ERROR npm 错误!网络超时:https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz
任何帮助或建议将不胜感激。谢谢。
【问题讨论】:
标签: javascript vue.js installation command-line-interface