在window10上运行vue项目报错
npm install gifsicle@4.0.1 postinstall
c:\Users...\Documents...\node_modules\gifsicle node lib/install.js ‼ tunneling
socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80 ‼
gifsicle pre-build test failed i compiling from source × Error: Command failed:
C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf" "autoreconf" non �
riconosciuto come comando interno o esterno, un programma eseguibile o un file
batch. at Promise.all.then.arr
(c:\Users\...\Documents\...\node_modules\execa\index.js:231:11) at
process._tickCallback (internal/process/next_tick.js:68:7) npm WARN
apodoc@1.0.0 No description npm WARN apodoc@1.0.0 No repository field. npm WARN
optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR!
gifsicle@4.0.1 postinstall: node lib/install.js npm ERR! Exit status 1 npm ERR!
npm ERR! Failed at the gifsicle@4.0.1 postinstall script. npm ERR! This is
probably not a problem with npm. There is likely additional logging output
above. npm ERR! A complete log of this run can be found in:
ping一下这个网址,raw.githubusercontent.com
PS C:\Users\Administrator> ping raw.githubusercontent.com Ping 请求找不到主机
raw.githubusercontent.com。请检查该名称,然后重试。
修改hosts文件,增加以下配置
52.74.223.119 github.com 192.30.253.119 gist.github.com 54.169.195.247
api.github.com 185.199.111.153 assets-cdn.github.com 151.101.76.133
raw.githubusercontent.com 151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com 151.101.76.133
camo.githubusercontent.com 151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com 151.101.76.133
avatars2.githubusercontent.com 151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com 151.101.76.133
avatars5.githubusercontent.com 151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com 151.101.76.133
avatars8.githubusercontent.com
再运行
npm cache clean -f
 测试
PS C:\Users\Administrator> ping raw.githubusercontent.com 正在 Ping
raw.githubusercontent.com [151.101.76.133] 具有 32 字节的数据: 来自 151.101.76.133 的回复:
字节=32 时间=197ms TTL=51 来自 151.101.76.133 的回复: 字节=32 时间=196ms TTL=51 来自
151.101.76.133 的回复: 字节=32 时间=201ms TTL=51
再次运行 npm install,一切正常!

技术
今日推荐
PPT
阅读数 99
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:766591547
关注微信