feat: replace taobao with ustc
This commit is contained in:
parent
60d72d5d6b
commit
119c65b0b8
|
@ -10,8 +10,9 @@ NODE_URL=https://nodejs.org/dist
|
||||||
NODE_VERSION=v14.15.4
|
NODE_VERSION=v14.15.4
|
||||||
NPM_BIN=npm
|
NPM_BIN=npm
|
||||||
if in_china; then
|
if in_china; then
|
||||||
NODE_URL=https://npm.taobao.org/mirrors/node
|
NPM_REGISTRY_URL=https://npmreg.mirrors.ustc.edu.cn
|
||||||
NPM_BIN=cnpm
|
NODE_URL=$NPM_REGISTRY
|
||||||
|
NPM_BIN=npm
|
||||||
fi
|
fi
|
||||||
export NPM_BIN
|
export NPM_BIN
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ install() {
|
||||||
rm "/tmp/$NAME"
|
rm "/tmp/$NAME"
|
||||||
sudo npm install -g yarn
|
sudo npm install -g yarn
|
||||||
if in_china; then
|
if in_china; then
|
||||||
#sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
|
echo "registry=$NPM_REGISTRY_URL" > ~/.npmrc
|
||||||
yarnpkg config set registry https://registry.npm.taobao.org --global
|
yarnpkg config set registry https://registry.npm.taobao.org --global
|
||||||
yarnpkg config set disturl https://npm.taobao.org/dist --global
|
yarnpkg config set disturl https://npm.taobao.org/dist --global
|
||||||
yarnpkg config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global
|
yarnpkg config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global
|
||||||
|
|
Loading…
Reference in New Issue
Block a user