Closed forliuyifei closed 3 years ago
npm install hexo-all-minifier --save --ignore-scripts
npm install hexo-all-minifier --save --ignore-scripts
i use this, and it install correctly, but i can't use hexo g
, the erros as follows
Error: write EOF at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:92:16)
when i uninstall the hexo-all-minifier, hexo g
can work
npm install hexo-all-minifier --save --ignore-scripts
that can not slove the problem , just ignore the scripts, actually it's can not work with hexo g
.
the error log is : Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf"
in a long time , i thought that it's my windows can't run autoconf, though i installed cygwin.
but actually that is "network problem".
the truly problem is can not connect with raw.githubusercontent.com
.
So, try write it in your 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
then try ping raw.githubusercontent.com
.
if it's worked , then try hexo-all-minifier again:
# in your blog
rm -rf node_modules/
# or npm install
npm install hexo-all-minifier --save
enjoy.
衷心建议:
安装失败的老铁们,别管各种不一样的报错,我的各种报错都没有在上面提到的issues中找到,仔细看报错内容提示,该重启的时候就重启,该上梯子就上梯子(不行就全局模式),卸载依赖:npm uninstall hexo-all-minifier
;安装依赖:npm install hexo-all-minifier --save
,这两个命令反复多来几次,就会忽然发现,安装成功了!!!!最后吐槽一句,被墙真不友好!!!
English version:
Sincere suggestions:
The old iron workers who failed to install, regardless of the different error reports, my various errors were not found in the issues mentioned above. Carefully read the error report content prompt, restart when it is time to restart, go up the ladder when it is time to restart (global mode if not possible), uninstall dependency: 'npm uninstall hexo all minifier'; Installation dependency: 'npm install hexo all minifier -- save'. Repeat these two commands several times and suddenly realize that the installation was successful!!!! In the end, roast that it was really unfriendly to be on the wall!!!