1. npm config set strict-ssl false -g
    2. npm config set registry http://registry.cnpmjs.org/
    3. npm config set registry http://registry.npm.taobao.org/

    yarn执行下列命令

    1. yarn config set "strict-ssl" false -g