docker 配置項
阿新 • • 發佈:2020-07-29
------------恢復內容開始------------
{ "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 dockerrm 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
完整執行