安装Vue CLI、Vue.JS和JavaScript

安装Vue CLI、Vue.JS和JavaScript,javascript,proxy,vue.js,vue-cli,Javascript,Proxy,Vue.js,Vue Cli,我正在尝试将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

我正在尝试将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

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


npm配置集注册表https://registry.npmjs.org/

如果您试图安装vue cli,则应尝试此操作

sudo npm安装--全局vue cli