Git Product home page Git Product logo

Comments (4)

DefectingCat avatar DefectingCat commented on June 5, 2024 5
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.

批注 2020-08-04 135351

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

批注 2020-08-04 135700

enjoy.

How to edit hosts
Same error

from hexo-all-minifier.

KumaNNN avatar KumaNNN commented on June 5, 2024 2
npm install hexo-all-minifier --save --ignore-scripts

from hexo-all-minifier.

WL2O2O avatar WL2O2O commented on June 5, 2024 1

衷心建议:
安装失败的老铁们,别管各种不一样的报错,我的各种报错都没有在上面提到的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.

nathaniel2020 avatar nathaniel2020 commented on June 5, 2024
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.

corp0ra1 avatar corp0ra1 commented on June 5, 2024

是的,的确是网络问题。
我还尝试过其他方案

  1. 通过cnpm迂回安装方式①npm install -g cnpm --registry=https://registry.npm.taobao.org②cnpm i -g gifsicle③npm install hexo-all-minifier --save
  2. 更改hosts,但是很遗憾,我的网络还是访问有问题,即使设置raw.githubusercontent.com为199.232.4.133
  3. 最终还是通过SSR开启全局代理才解决

from hexo-all-minifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.