【问题标题】:Installing Vue-CLI, VUE.JS, JavaScript安装 Vue-CLI、VUE.JS、JavaScript
【发布时间】:2018-07-07 21:02:44
【问题描述】:

我正在尝试将 VUE CLI 安装到我的笔记本电脑中,但出现以下错误。

λ npm install -g vue-cli
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.nmpjs.org/vue-cli failed, reason: connect ETIMEDOUT 218.93.250.18:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ABDUR REHMAN KHALID\AppData\Roaming\npm-cache\_logs\2018-01-29T07_46_22_789Z-debug.log

【问题讨论】:

    标签: javascript proxy vue.js vue-cli


    【解决方案1】:

    如果您尝试安装vue-cli,那么您应该试试这个。

    sudo npm install --global vue-cli
    

    【讨论】:

      【解决方案2】:

      这不是 Vue 问题。您的注册表似乎设置为错误的 url。使用以下命令将注册表设置为正确的 url:

      npm config set registry https://registry.npmjs.org/

      【讨论】:

        猜你喜欢
        • 2023-02-13
        • 2020-04-20
        • 2021-12-07
        • 2021-05-20
        • 2021-06-17
        • 2021-02-13
        • 2020-05-25
        • 2019-04-27
        • 2020-04-03
        相关资源
        最近更新 更多