stackrole / gatsby-starter-foundation

A starter to launch your blazing fast personal website and a blog, Built with Gatsby and Netlify CMS. Made with ❤ by Stackrole
https://foundation.stackrole.com
MIT License
270 stars 127 forks source link

Multiples errors on install when packages installation start #74

Closed Dont-ask-for-it closed 1 year ago

Dont-ask-for-it commented 1 year ago

$ gatsby new webgatsby-vdls https://github.com/stackrole/gatsby-starter-foundation info Creating new site from git: https://github.com/stackrole/gatsby-starter-foundation.git

Cloning into 'webgatsby-vdls'... remote: Enumerating objects: 101, done. remote: Counting objects: 100% (101/101), done. remote: Compressing objects: 100% (89/89), done. remote: Total 101 (delta 2), reused 60 (delta 1), pack-reused 0 Receiving objects: 100% (101/101), 24.51 MiB | 3.69 MiB/s, done. success Created starter directory layout info Installing packages...

npm ERR! code 1 npm ERR! path C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! Les projets sont générés individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "-m". npm ERR! nothing.c npm ERR! win_delay_load_hook.cc npm ERR! nothing.vcxproj -> C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp\build\Release\nothing.lib npm ERR! VError.cpp npm ERR! C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp\src\libvips\cplusplus\VError.cpp(33,10): fatal error C1083: Impossible d'ouvrir le fichier include : 'vips/intl.h' : No such file or directory [C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp\build\libvips-cpp.vcxproj] npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@18.12.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.11.0 found at "C:\Python311\python.exe" npm ERR! gyp info find VS using VS2022 (17.4.33110.190) found at: npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community" npm ERR! gyp info find VS run with --verbose for detailed information npm ERR! gyp info spawn C:\Python311\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'msvs', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\fbeau\AppData\Local\node-gyp\Cache\18.12.1\include\node\common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\fbeau\AppData\Local\node-gyp\Cache\18.12.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\fbeau\\AppData\\Local\\node-gyp\\Cache\\18.12.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'build/binding.sln', npm ERR! gyp info spawn args '/clp:Verbosity=minimal', npm ERR! gyp info spawn args '/nologo', npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64' npm ERR! gyp info spawn args ] npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:201:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Windows_NT 10.0.22621 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\fbeau\gatsby\webgatsby-vdls\node_modules\sharp npm ERR! gyp ERR! node -v v18.12.1 npm ERR! gyp ERR! node-gyp -v v9.1.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

ERROR UNKNOWN

Command failed with exit code 1: npm install

Error: Command failed with exit code 1: npm install

munawar-js commented 1 year ago

In the latest commit fixed build issues, please make sure you have Node >=18