npm如何设置仓库地址-nvm设置代理服务器-安装pnpm
·
遇到的问题:
在vue项目中npm如何设置仓库地址呢?
解决方法:
一、查看当前地址:
npm config get registry
https://registry.npmmirror.com
npm config get disturl
undefined
二、设置当前地址(设置为淘宝镜像):
npm config set registry http://registry.npm.taobao.org/
三、设置当前地址(设置为默认地址):
npm config set registry https://registry.npmmirror.com
三、每次执行命令前加入-registry指定仓库路径:
npm --registry https://registry.npm.taobao.org install
四、恢复默认镜像地址:
npm config delete registry
nvm设置代理服务器
vim ~/.nvm/nvm.sh
#添加
export NVM_NODEJS_ORG_MIRROR=https://mirrors.aliyun.com/nodejs-release/
标题安装pnpm
npm install pnpm -g
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)