Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared
- 錯(cuò)誤關(guān)鍵詞:
cwebp-bin
,?autoreconf -ivf
,?pngquant
,?libpng-dev
- 完整的錯(cuò)誤信息有3條:
- Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared --prefix="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor" --bindir="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor""
- Error: Command failed: C:\windows\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf'
- Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --with-system-zlib --prefix="D:\Project\vue-admin-beautiful-template\node_modules\optipng-bin\vendor" --bindir="D:\Project\vue-admin-beautiful-template\node_modules\optipng-bin\vendor""
- Error: pngquant failed to build, make sure that libpng-dev is installed
發(fā)生場(chǎng)景:react 老項(xiàng)目在執(zhí)行npm install時(shí)報(bào)錯(cuò)
完整的錯(cuò)誤
cwebp-bin@5.1.0 postinstall D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin > node lib/install.js ? getaddrinfo ENOENT raw.githubusercontent.com ? cwebp pre-build test failed i compiling from source × Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared --prefix="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor" --bindir="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor"" '.' ????? ??????????????????е???? ????????????? at D:\Project\vue-admin-beautiful-template\node_modules\bin-build\node_modules\execa\index.js:231:11 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Promise.all (index 0) > gifsicle@5.1.0 postinstall D:\Project\vue-admin-beautiful-template\node_modules\gifsicle > node lib/install.js ? getaddrinfo ENOENT raw.githubusercontent.com ? gifsicle pre-build test failed i compiling from source × Error: Command failed: C:\windows\system32\cmd.exe /s /c "autoreconf -ivf" 'autoreconf' ????? ??????????????????е???? ?????????????
解決辦法
找到問(wèn)題所在,解決起來(lái)就容易得多了,直接找到可用的ip地址寫進(jìn)host里面,這里剛好有一個(gè),如果下面的ip地址不行,找到可用ip地址就好
?199.232.28.133?raw.githubusercontent.com
或者文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-609576.html
185.199.108.133?raw.githubusercontent.com文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-609576.html
到了這里,關(guān)于getaddrinfo ENOENT raw.githubusercontent.com的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!