質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Yarn

Yarnは、Facebook/Exponent/Google/Tildeが開発したJavaScriptのパッケージマネージャ。npmよりもインストールが速く、厳密にモジュールのバージョンを固定できるなど、npmの問題を解決。npmと互換性があり、同じpackage.jsonを使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Windows

Windowsは、マイクロソフト社が開発したオペレーティングシステムです。当初は、MS-DOSに変わるOSとして開発されました。 GUIを採用し、主にインテル系のCPUを搭載したコンピューターで動作します。Windows系OSのシェアは、90%を超えるといわれています。 パソコン用以外に、POSシステムやスマートフォンなどの携帯端末用、サーバ用のOSもあります。

Q&A

0回答

1455閲覧

sharpをインストールできない(Windows)

j11

総合スコア2

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Yarn

Yarnは、Facebook/Exponent/Google/Tildeが開発したJavaScriptのパッケージマネージャ。npmよりもインストールが速く、厳密にモジュールのバージョンを固定できるなど、npmの問題を解決。npmと互換性があり、同じpackage.jsonを使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Windows

Windowsは、マイクロソフト社が開発したオペレーティングシステムです。当初は、MS-DOSに変わるOSとして開発されました。 GUIを採用し、主にインテル系のCPUを搭載したコンピューターで動作します。Windows系OSのシェアは、90%を超えるといわれています。 パソコン用以外に、POSシステムやスマートフォンなどの携帯端末用、サーバ用のOSもあります。

0グッド

0クリップ

投稿2021/06/12 06:51

編集2021/06/12 10:39

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日立ってます><
エラーが出ないようにインストール方法を教えてください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

y_waiwai

2021/06/12 06:55

で、しつもんはなんでしょうか
j11

2021/06/12 10:39

エラーが出ないようにインストール方法です。
archiver

2021/06/14 09:15

>sharp Windows x86 (32-bit) node.exe is not supported これだからじゃないの。 とりあえず環境の情報を追記してください。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問