Skip to main content

npm && yarn

nvm 使用阿里镜像

export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/

n 使用阿里镜像

export N_NODE_MIRROR=https://npmmirror.com/mirrors/node/

npm使用阿里源

npm i [package-name] --registry=https://registry.npmmirror.com

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

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

yarn config delete registry