初始vue-cli化项目

vue init <模板名称> <项目名称>

可能会出现报错信息

vue-cli · Failed to download repo vuejs-templates/webpack: getaddrinfo ENOTFOUND github.com

解决方案

运行一下命令行,设置所有代理为 null(无效)

npm config set http-proxy null

npm config set https-proxy null

重新运行vue init <模板名称> <项目名称>即可

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐