Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
399 views
in Technique[技术] by (71.8m points)

nvm下npm安装包失败?

nvm的相关信息:

nvm version // 1.1.7
npm -v // 6.14.8
node -v // v12.19.0 这个14和10版本的都不行

已经按照网上设置了淘宝镜像:

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

但是我用这个命令发现还是国外的:

npm config get registry // #http://registry.npmjs.org

使用这也不行。。

npm config set registry http://registry.npm.taobao.org

主要的是其他包都能装上,就是这三个装不上:npm install --save babel-polyfill element-ui vuex-persistedstate,求大佬解答一波。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

查看你当前用户的.npmrc文件C:Usersyourname


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...