docker 配置项

------------恢复内容开始------------

{
    "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

完整运行

posted @ 2020-07-29 13:50  qkstart  阅读(203)  评论(0编辑  收藏  举报