react报错error Received malformed response ...

  搭建react脚手架时
    npm install create-react-app -g
    create-react-app antm-demo
    报错如下:error Received malformed response from registry for undefined. The registry
    may be down
    解决方案:
    npm config set registry https://registry.npm.taobao.org 
    npm config set disturl https://npm.taobao.org/dist

猜你喜欢

转载自blog.51cto.com/12885303/2155585
今日推荐