【问题标题】:Problems trying to install VUE\CLI using the latest version of NPM尝试使用最新版本的 NPM 安装 VUE\CLI 时出现问题
【发布时间】:2022-01-10 20:08:02
【问题描述】:

我正在尝试安装 VUE/CLI,但在安装过程中出现多个错误。我使用 Visual Studio Code 命令行终端和 Node\npm 与命令行屏幕,我仍然得到相同的结果。

  1. 我得到了最新版本的 NodeJS (v16.13.1) 和 NPM (8.3.0)。

  2. 运行 npm install -g @vue/cli

  3. 收到错误 npm ERR!无法读取 null 的属性(读取“pickAlgorithm”) npm 错误!可以在以下位置找到此运行的完整日志:

  4. 阅读了类似的帖子,我运行了 npm cache ckear --force

  5. 再次运行 npm install -g @vue/cli。

  6. 安装过程在此过程中挂起:reify:rxjs: http fetch GET 200 https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz16557ms (cache miss)

  7. 得到错误: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
    
  8. 我尝试使用 npm config rm proxy 和 npm config rm https-proxy,但没有成功。

  9. 我按照上述步骤再次重试并得到 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


    【解决方案1】:

    您可以尝试将您的 DNS 更改为 google,如下所示:

    https://www.youtube.com/watch?v=9BD264pKWzc

    【讨论】:

      猜你喜欢
      • 2020-11-30
      • 2018-03-14
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      • 2021-07-25
      • 2016-10-13
      • 2016-05-29
      • 2017-11-29
      相关资源
      最近更新 更多