npm install vue-resource有问题

执行npm install vue-resource --save的时候出现这样的问题

D:myProjecttranslate>npm install vue-resource --save
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/vu... failed, reas
on: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org: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 settin
gs.
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:UsersAdministratorAppDataRoamingnpm-cache_logs2018-07-23T0

看提示说有可能使网络的原因,但是我安装jQuery,bootstrap等都是可以安装成功的,就是vue-resource安装不成功,这是怎么回事,求大牛们帮忙解答。


暮色呼如
浏览 2064回答 1
1回答

慕容森

npm 不太稳定 ,建议切换cnpm.另外vue 推荐axios进行ajax,resource已经不再维护了。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript