zoukankan      html  css  js  c++  java
  • 解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题

    Windows10环境下创建vue项目:

    1、进入D盘,在D盘目录创建edutrainvue项目

       vue init webpack edutrainvue

            

     2、解决方法:

    设置所有代理为 null

      npm config set http-proxy null
      npm config set https-proxy null

      
    
    

     使用本地的 webpack 在github 上下载 webpack 库到本地,webpack在github的厂库地址:https://github.com/vuejs-templates/webpack 。

    git clone https://github.com/vuejs-templates/webpack

     


    再次创建一个vue项目 vue_admin

    vue init D:/webpack vue_admin // D:/webpack github下载的本地webpack 路径

     

     致谢

    参考该文章写,感谢作者(https://www.jianshu.com/p/650fe2976fb9 )的分享 

     
  • 相关阅读:
    Linux strip
    有趣的BUG
    GDB watch std::string size
    Redis Cluster Lua
    Double Buffer
    Yarn架构
    天池公交客流预测比赛
    hashmap,ConcurrentHashMap与hashtable的区别
    fail-fast和fail-safe
    常见机器学习算法优缺点
  • 原文地址:https://www.cnblogs.com/betobe/p/15508776.html
Copyright © 2011-2022 走看看