Closed aslkami closed 4 years ago
@aslkami can you show us more info about your env and your website?
Run `gatsby info --clipboard` in your project directory and paste the output here.
when i ran npm i
, it show
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
sharp@0.25.2 install E:\demo\gatsby_blog\node_modules\sharp (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached C:\Users\fate\AppData\Roaming\npm-cache_libvips\libvips-8.9.1-win32-x64.tar.gz info sharp Creating E:\demo\gatsby_blog\node_modules\sharp\build\Release info sharp Copying DLLs from E:\demo\gatsby_blog\node_modules\sharp\vendor\lib to E:\demo\gatsby_blog\node_modules\sharp\build\Release
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\bmp\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\core\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\custom\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\gif\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\jpeg\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-blit\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-blur\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-circle\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-color\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-contain\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-cover\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-crop\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-displace\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-dither\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-fisheye\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-flip\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-gaussian\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-invert\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-mask\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-normalize\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-print\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-resize\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-rotate\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-scale\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-shadow\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugin-threshold\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\plugins\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\png\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\tiff\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\types\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\@jimp\utils\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js@2.6.11 postinstall E:\demo\gatsby_blog\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
core-js-pure@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\core-js-pure node -e "try{require('./postinstall')}catch(e){}"
core-js@3.6.5 postinstall E:\demo\gatsby_blog\node_modules\jimp\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
gatsby-telemetry@1.2.4 postinstall E:\demo\gatsby_blog\node_modules\gatsby-telemetry node src/postinstall.js || true
cwebp-bin@5.1.0 postinstall E:\demo\gatsby_blog\node_modules\cwebp-bin node lib/install.js
‼ read ECONNRESET ‼ cwebp pre-build test failed i compiling from source × Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "./configure --disable-shared --prefix="E:\demo\gatsby_blog\node_modules\cwebp-bin\vendor" --bindir="E:\demo\gatsby_blog\node_modules\cwebp-bin\vendor"" '.' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ���
at E:\demo\gatsby_blog\node_modules\bin-build\node_modules\execa\index.js:231:11
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
mozjpeg@6.0.1 postinstall E:\demo\gatsby_blog\node_modules\mozjpeg node lib/install.js
‼ read ECONNRESET ‼ mozjpeg pre-build test failed i compiling from source × Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -fiv" 'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ���
at E:\demo\gatsby_blog\node_modules\bin-build\node_modules\execa\index.js:231:11
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
pngquant-bin@5.0.2 postinstall E:\demo\gatsby_blog\node_modules\pngquant-bin node lib/install.js
‼ read ECONNRESET
‼ pngquant pre-build test failed
i compiling from source
× Error: pngquant failed to build, make sure that libpng-dev is installed
at E:\demo\gatsby_blog\node_modules\bin-build\node_modules\execa\index.js:231:11
at runMicrotasks (
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pngquant-bin@5.0.2 postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pngquant-bin@5.0.2 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: npm ERR! C:\Users\fate\AppData\Roaming\npm-cache_logs\2020-04-17T08_40_53_215Z-debug.log
I wanna reinstall the node_module, and it failed, And I try to gatsby new blog, it had same problem
I could not install successfully! But it works 2 days ago
I don't know why.
I had google cwebp pre-build test failed
, but it dosn't make sense
here are my dependences "dependencies": { "gatsby": "^2.20.12", "gatsby-image": "^2.3.1", "gatsby-plugin-manifest": "^2.3.3", "gatsby-plugin-offline": "^3.1.2", "gatsby-plugin-react-helmet": "^3.2.1", "gatsby-plugin-sharp": "^2.5.3", "gatsby-remark-images": "^3.2.2", "gatsby-remark-relative-images": "^0.3.0", "gatsby-source-contentful": "^2.2.7", "gatsby-source-filesystem": "^2.2.2", "gatsby-transformer-remark": "^2.7.1", "gatsby-transformer-sharp": "^2.4.3", "prop-types": "^15.7.2", "react": "^16.12.0", "react-dom": "^16.12.0", "react-helmet": "^5.2.1", "typeface-source-sans-pro": "^1.1.5" }, "devDependencies": { "env-cmd": "^10.1.0", "gatsby-plugin-stylus": "^2.2.1", "imagemin-pngquant": "^8.0.0", "prettier": "^1.19.1" }
OS: Window
@aslkami can you show us more info about your env and your website?
Run `gatsby info --clipboard` in your project directory and paste the output here.
It still doesn't make sense /(ㄒoㄒ)/~~
This is odd indeed, I installed blog starter and did not have any issues.
Perhaps reinstall windows-build tools? npm install --global windows-build-tools
This is odd indeed, I installed blog starter and did not have any issues.
Perhaps reinstall windows-build tools?
npm install --global windows-build-tools
‼ getaddrinfo ENOENT raw.githubusercontent.com
‼ cwebp pre-build test failed
i compiling from source
× RequestError: getaddrinfo ENOTFOUND downloads.webmproject.org
at ClientRequest.
I try again,and I failed
Forget installing Gatsby after "gatsby": "^2.19.39", Its build is for mac computers now. They use fs and fs-events to much which is not windows installable or compatible. This core-js stuff has gotten way out of control with no end in site, Goodby Gatsby off to Docusarus. To may errors on gatsby-cli and gatsby over 700 errors lately, did not used to have any errors??? Try version 12.19.39
Forget installing Gatsby after "gatsby": "^2.19.39", Its build is for mac computers now. They use fs and fs-events to much which is not windows installable or compatible. This core-js stuff has gotten way out of control with no end in site, Goodby Gatsby off to Docusarus. To may errors on gatsby-cli and gatsby over 700 errors lately, did not used to have any errors??? Try version 12.19.39
I have to apply proxy to install,now it works
Olvídate de instalar Gatsby después de "gatsby": "^ 2.19.39", su compilación es para computadoras Mac ahora. Usan fs y fs-events para mucho, lo que no es instalable o compatible con Windows. Estas cosas de core-js se salieron de control sin fin en el sitio, Goodby Gatsby se fue a Docusarus. ¿Puede haber errores en gatsby-cli y gatsby más de 700 errores últimamente, no solía tener ningún error? Pruebe la versión 12.19.39
Tengo que aplicar proxy para instalar, ahora funciona
Explicame para hacerlo desde mi pc por favor, tambien tengo el mismo problema
Forget installing Gatsby after "gatsby": "^2.19.39", Its build is for mac computers now. They use fs and fs-events to much which is not windows installable or compatible. This core-js stuff has gotten way out of control with no end in site, Goodby Gatsby off to Docusarus. To may errors on gatsby-cli and gatsby over 700 errors lately, did not used to have any errors??? Try version 12.19.39
waaaaiiittt You mean gatsby won't work on windows anymore? Glad I saw that, I was going to move my blog to Gatsby and, although I'm on a mac today, my main computer is windows.
error An unexpected error occurred: "/Users/moutai/moufans.com/node_modules/pngquant-bin: Command failed. Exit code: 1 Command: sh Arguments: -c node lib/install.js Directory: /Users/moutai/moufans.com/node_modules/pngquant-bin Output: ⚠ connect ECONNREFUSED 0.0.0.0:443 ⚠ pngquant pre-build test failed ℹ compiling from source ✖ Error: pngquant failed to build, make sure that libpng is installed at /Users/moutai/moufans.com/node_modules/bin-build/node_modules/execa/index.js:231:11
Same error here. But it was gone after I connected VPN.
It seems like a firewall issue
the same problem occurred when I run thegatsby new my-blog-starter https://github.com/gatsbyjs/gatsby-starter-blog
.This problem maybe because you can't connect to raw.githubusercontent.com
. you can test ping to raw.githubusercontent.com
.If you cannot connect to the host, that means DNS cache pollution. I have resolved the problem by using yogaDNS.
cwebp-bin@5.1.0 postinstall E:\demo\gatsby_blog\node_modules\cwebp-bin ‼ getaddrinfo ENOENT raw.githubusercontent.com ‼ cwebp pre-build test failed i compiling from source
mozjpeg@6.0.1 postinstall E:\demo\gatsby_blog\node_modules\mozjpeg ‼ getaddrinfo ENOENT raw.githubusercontent.com ‼ mozjpeg pre-build test failed i compiling from source
Expected result
npm install sucessfully
Actual result
npm install failed
Environment
os: window