Comments (4)
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.
from hexo-all-minifier.
npm install hexo-all-minifier --save --ignore-scripts
from hexo-all-minifier.
衷心建议:
安装失败的老铁们,别管各种不一样的报错,我的各种报错都没有在上面提到的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!!!
from hexo-all-minifier.
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
from hexo-all-minifier.
是的,的确是网络问题。
我还尝试过其他方案
- 通过cnpm迂回安装方式①npm install -g cnpm --registry=https://registry.npm.taobao.org②cnpm i -g gifsicle③npm install hexo-all-minifier --save
- 更改hosts,但是很遗憾,我的网络还是访问有问题,即使设置raw.githubusercontent.com为199.232.4.133
- 最终还是通过SSR开启全局代理才解决
from hexo-all-minifier.
Related Issues (20)
- path is undefined
- cjpeg error? HOT 4
- Excellent repo, but too slow to compressing many images HOT 2
- Cannot minify the js with the lastest node version
- npm WARN deprecated HOT 1
- Can't apply image_minifier HOT 1
- Random Error: "MaxBufferError: stdout maxBuffer exceeded"
- Update dependencies
- err:Error:Command failed with exit code3221225781:E\hexo\node_modules\mozjpeg\vendor\cjpeg.exe-baseline HOT 1
- install error
- issue: hexo-all-minifier
- 無法安裝 hexo-all-minifier (Can't install hexo-all-minifier)
- just a question HOT 1
- An in-range update of html-minifier is breaking the build 🚨 HOT 1
- Didn't install HOT 4
- Error: write EOF HOT 2
- Using image_minifier will cause the local service to fail
- Bug: 当js_concator.front选项启用时,没有指向绝对路径
- When js_concator is enabled, the HTML in the code block is displayed incorrectly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-all-minifier.