安装yarn

npm install -g yarn --registry=https://registry.npm.taobao.org
ln -s /usr/local/nodejs/bin/yarn /usr/local/bin

获取配置

# yarn config get registry
https://registry.yarnpkg.com

设置配置

# yarn config set registry https://registry.npm.taobao.org -g
yarn config v1.22.4
success Set "registry" to "https://registry.npm.taobao.org".
Done in 0.03s.


# yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn config v1.22.4
success Set "sass_binary_site" to "http://cdn.npm.taobao.org/dist/node-sass".
Done in 0.03s.

安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org
ln -s /usr/local/nodejs/bin/cnpm /usr/local/bin

安装taro

npm install -g @tarojs/cli --registry=https://registry.npm.taobao.org
ln -s /usr/local/nodejs/bin/taro /usr/local/bin

相关文章:

  • 2021-10-21
  • 2022-12-23
  • 2021-07-06
  • 2022-01-11
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
  • 2022-12-23
  • 2021-11-11
  • 2021-08-22
相关资源
相似解决方案