Error starting new project compiling
See original GitHub issueHello, I have this error trying to set up a new Gatsby project. I’m using node v13.6.0, npm v6.13.4, python 3.7 and visual express 2017 I’m able to install for example bcrypt, I wonder if it’s an issue with Linux file path like.
$ gatsby new wp-gatsby https://github.com/GatsbyCentral/gatsby-starter-wordpress
info Creating new site from git: https://github.com/GatsbyCentral/gatsby-starter-wordpress.git
Cloning into 'wp-gatsby'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 53 (delta 1), reused 33 (delta 0), pack-reused 0
Unpacking objects: 100% (53/53), done.
[32msuccess[39m Created starter directory layout
[34minfo[39m Installing packages...
> deasync@0.1.16 install C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\deasync
> node ./build.js
`win32-x64-node-12` exists; testing
Binary is fine; exiting
> sharp@0.23.3 install C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached C:\Users\userXX\AppData\Roaming\npm-cache\_libvips\libvips-8.8.1-win32-x64.tar.gz
info sharp Creating C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\sharp\build\Release
info sharp Copying DLLs from C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\sharp\vendor\lib to C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\sharp\build\Release
> node-sass@4.13.0 install C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\userXX\AppData\Roaming\npm-cache\node-sass\4.13.0\win32-x64-72_binding.node
> core-js@2.6.10 postinstall C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\core-js
> node postinstall || echo "ignore"
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 -)
> gatsby-telemetry@1.1.39 postinstall C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\gatsby-telemetry
> node src/postinstall.js
> cwebp-bin@5.1.0 postinstall C:\xampp\htdocs\wordpress\wp-gatsby\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="C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\cwebp-bin\vendor" --bindir="C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\cwebp-bin\vendor""
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
at C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\execa\index.js:231:11
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
> mozjpeg@6.0.1 postinstall C:\xampp\htdocs\wordpress\wp-gatsby\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' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
at C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\execa\index.js:231:11
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
> pngquant-bin@5.0.2 postinstall C:\xampp\htdocs\wordpress\wp-gatsby\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 C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\execa\index.js:231:11
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
npm WARN rollback Rolling back node-pre-gyp@0.12.0 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\xampp\htdocs\wordpress\wp-gatsby\node_modules\fsevents\node_modules'
npm WARN gatsby-starter-wordpress@0.1.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
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\userXX\AppData\Roaming\npm-cache\_logs\2020-01-07T14_33_53_695Z-debug.log
ERROR
Command failed with exit code 1: npm install
Error: Command failed with exit code 1: npm install
- error.js:56 makeError
[node-v12.14.0-win-x64]/[gatsby-cli]/[execa]/lib/error.js:56:11
- index.js:114 handlePromise
[node-v12.14.0-win-x64]/[gatsby-cli]/[execa]/index.js:114:26
- task_queues.js:93 processTicksAndRejections
internal/process/task_queues.js:93:5
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
compilation error while creating new project. 2021.1.20f1
compilation error while creating new project. 2021.1.20f1 · Go to C:/Users/Your User Name/AppData/Local/Unity/cache/packages/packages.unity.com ( ...
Read more >Compile error in new project - Unity Forum
I started a new project in 2020LTS and get 2 errors when the project is first built, before I add any assets or...
Read more >Why do I get compile errors in every project, even new ones ...
This is usually caused by importing packages by unity. You can found Package inside project inspector. enter image description here.
Read more >Unity error immediately after creating a new Project
Go into your Unity Package Manager and find the Visual Studio Code package. Click 'see all versions'. Change the versions and try ...
Read more >The Project you are opening contains compilation errors fix
0:00 · New ! Watch ads now so you can enjoy fewer interruptions. Got it ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jonniebigodes is absolutely right!
Marking this as resolved and closing since this isn’t strictly a Gatsby issue but feel free to comment if you need any more help on this. Thanks!
@micka753 have you taken a look at this might help you with your issue. You’ll probably need to modify the installation following these steps