0
点赞
收藏
分享

微信扫一扫

LVS(Linux virual server)

以下为 npm 镜像

npm 查询当前镜像

npm get registry

npm 设置为淘宝镜像
淘宝镜像源一(推荐)

npm config set registry https://registry.npmmirror.com/

淘宝镜像源二

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

npm 设置为官方默认镜像

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

以下为 pnpm 镜像

npm 安装 pnpm

npm install -g pnpm

查看是否安装成功

pnpm -v

查看当前镜像

pnpm config get registry

设为淘宝镜像
淘宝镜像源一(推荐)

pnpm config set registry https://registry.npmmirror.com/

淘宝镜像源二

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

设为官方默认镜像

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

以下为 yarn 镜像

npm 安装 yarn

npm install -g yarn

npm 卸载 yarn

npm uninstall -g yarn

查看是否安装/卸载成功

yarn -v

查询当前镜像

yarn config get registry

设置为淘宝镜像
淘宝镜像源一(推荐)

yarn config set registry https://registry.npmmirror.com/

淘宝镜像源二

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

设置为官方默认镜像

yarn config set registry https://registry.yarnpkg.com/

错误提示

举报

相关推荐

0 条评论