gatsbyでyarn installするとエラーがでます。
powershell
1error C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp: Command failed. 2Exit code: 1 3Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) 4Arguments: 5Directory: C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp 6Output: 7ERR! sharp Windows x86 (32-bit) node.exe is not supported 8info sharp Attempting to build from source via node-gyp but this may fail due to the above error 9info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies 10gyp info it worked if it ends with ok 11gyp info using node-gyp@5.1.0 12gyp info using node@14.17.0 | win32 | ia32 13gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe" 14 15C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) 16gyp info find VS using VS2017 (15.9.28307.1525) found at: 17gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" 18gyp info find VS run with --verbose for detailed information 19gyp info spawn C:\Python27\python.exe 20gyp info spawn args [ 21gyp info spawn args 'C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py', 22gyp info spawn args 'binding.gyp', 23gyp info spawn args '-f', 24gyp info spawn args 'msvs', 25gyp info spawn args '-I', 26gyp info spawn args 'C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp\build\config.gypi', 27gyp info spawn args '-I', 28gyp info spawn args 'C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi', 29gyp info spawn args '-I', 30gyp info spawn args 'C:\Users\username\AppData\Local\node-gyp\Cache\14.17.0\include\node\common.gypi', 31gyp info spawn args '-Dlibrary=shared_library', 32gyp info spawn args '-Dvisibility=default', 33gyp info spawn args '-Dnode_root_dir=C:\Users\username\AppData\Local\node-gyp\Cache\14.17.0', 34gyp info spawn args '-Dnode_gyp_dir=C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp', 35gyp info spawn args '-Dnode_lib_file=C:\\Users\\username\\AppData\\Local\\node-gyp\\Cache\\14.17.0\\<(target_arch)\\node.lib', 36gyp info spawn args '-Dmodule_root_dir=C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp', 37gyp info spawn args '-Dnode_engine=v8', 38gyp info spawn args '--depth=.', 39gyp info spawn args '--no-parallel', 40gyp info spawn args '--generator-output', 41gyp info spawn args 'C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp\build', 42gyp info spawn args '-Goutput_dir=.' 43gyp info spawn args ] 44gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe 45gyp info spawn args [ 46gyp info spawn args 'build/binding.sln', 47gyp info spawn args '/clp:Verbosity=minimal', 48gyp info spawn args '/nologo', 49gyp info spawn args '/p:Configuration=Release;Platform=Win32' 50gyp info spawn args ] 51���̃\�����[�V�������̃v���W�F�N�g�� 1 �x�� 1 ���r���h���܂��B���s�r���h��L���ɂ���ɂ́A"/m" �X�C�b�`��lj����Ă��������B 52 VError.cpp 53 VInterpolate.cpp 54 VImage.cpp 55 win_delay_load_hook.cc 56c:\users\username\documents\gatsby-starter-blog-typescript\node_modules\sharp\src\libvips\cplusplus\vinterpolate.cpp(34): fatal error C1083: include �t�@�C�����J���܂���B'vips/intl.h':No such file or directory [C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp\build\libvips-cpp.vcxproj] 57c:\users\username\documents\gatsby-starter-blog-typescript\node_modules\sharp\src\libvips\cplusplus\verror.cpp(33): fatal error C1083: include �t�@�C�����J���܂���B'vips/intl.h':No such file or directory [C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp\build\libvips-cpp.vcxproj] 58c:\users\username\documents\gatsby-starter-blog-typescript\node_modules\sharp\src\libvips\cplusplus\vimage.cpp(41): fatal error C1083: include �t�@�C�����J���܂���B'vips/intl.h':No such file or directory [C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp\build\libvips-cpp.vcxproj] 59gyp ERR! build error 60gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 61gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) 62gyp ERR! stack at ChildProcess.emit (events.js:376:20) 63gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) 64gyp ERR! System Windows_NT 10.0.19042 65gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" 66gyp ERR! cwd C:\Users\username\Documents\Gatsby-Starter-Blog-Typescript\node_modules\sharp
解決できなくて2日立ってます><
エラーが出ないようにインストール方法を教えてください。
あなたの回答
tips
プレビュー