------------恢复内容开始------------
{ "registry-mirrors": [ "http://hub-mirror.c.163.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn" ], "insecure-registries": [], "debug": true, "experimental": false }
网易的镜像地址好像最快
#1 管理员权限运行 docker stop taro3 docker rm taro3 #docker run -itd --name taro3 node:latest docker run -itd -v $PWD/:/home/taro --name taro3 node:latest docker exec -it taro3 /bin/bash npm config get registry npm config set registry https://registry.npm.taobao.org/ yarn config get registry yarn config set registry https://registry.npm.taobao.org/ npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config delete proxy npm config rm proxy npm config rm https-proxy yarn global add mirror-config-china yarn global add node-sass yarn global add @tarojs/cli yarn install npm rebuild node-sass --save-dev yarn run dev:weapp
完整运行