npm install でのエラー
受付中
回答 0
投稿
- 評価
- クリップ 0
- VIEW 1,708
とあるソフトをビルドしようとしたのですがエラーが発生しました。
> sha3@1.2.0 install D:\Dev\yyy\node_modules\sha3
> node-gyp rebuild
D:\Dev\yyy\node_modules\sha3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
このソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、"/m" スイッチを追加してください。
addon.cpp
displayIntermediateValues.cpp
KeccakF-1600-reference.cpp
KeccakNISTInterface.cpp
KeccakSponge.cpp
win_delay_load_hook.cc
d:\dev\yyy\node_modules\nan\nan.h(839): warning C4996: 'node::MakeCallback': が非推奨として宣言されました。 (ソース ファイルをコンパイルしています ..\src\addon.cpp) [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
c:\users\xxx\.node-gyp\10.2.1\include\node\node.h(171): note: 'node::MakeCallback' の宣言を確認してください (ソース ファイルをコンパイルしています ..\src\addon.cpp)
d:\dev\yyy\node_modules\nan\nan.h(854): warning C4996: 'node::MakeCallback': が非推奨として宣言されました。 (ソース ファイルをコンパイルしています ..\src\addon.cpp) [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
c:\users\xxx\.node-gyp\10.2.1\include\node\node.h(164): note: 'node::MakeCallback' の宣言を確認してください (ソース ファイルをコンパイルしています ..\src\addon.cpp)
d:\dev\yyy\node_modules\nan\nan.h(869): warning C4996: 'node::MakeCallback': が非推奨として宣言されました。 (ソース ファイルをコンパイルしています ..\src\addon.cpp) [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
c:\users\xxx\.node-gyp\10.2.1\include\node\node.h(157): note: 'node::MakeCallback' の宣言を確認してください (ソース ファイルをコンパイルしています ..\src\addon.cpp)
d:\dev\yyy\node_modules\nan\nan.h(1478): warning C4996: 'node::MakeCallback': が非推奨として宣言されました。 (ソース ファイルをコンパイルしています ..\src\addon.cpp) [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
c:\users\xxx\.node-gyp\10.2.1\include\node\node.h(171): note: 'node::MakeCallback' の宣言を確認してください (ソース ファイルをコンパイルしています ..\src\addon.cpp)
d:\dev\yyy\node_modules\sha3\src\addon.cpp(49): warning C4316: 'SHA3Hash': ヒープで割り当てられたオブジェクトが 32 にアラインメントされていない可能性があります [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
d:\dev\yyy\node_modules\sha3\src\addon.cpp(59): error C2661: 'v8::Function::NewInstance': 2 個の引数を伴うオーバーロードされた関数はありません。 [D:\Dev\yyy\node_modules\sha3\build\sha3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.17134
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"
gyp ERR! cwd D:\Dev\yyy\node_modules\sha3
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN @material-ui/core@1.0.0 requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/core@1.0.0 requires a peer of react-dom@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN gulp-stylelint@7.0.0 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@7.0.1 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN stylelint-config-recommended@2.1.0 requires a peer of stylelint@^8.3.0 || ^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN stylelint-config-standard@18.2.0 requires a peer of stylelint@^8.3.0 || ^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-cli@2.0.13 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package css-loader is included as both a dev and production dependency.
npm WARN The package eslint-plugin-react is included as both a dev and production dependency.
npm WARN The package file-loader is included as both a dev and production dependency.
npm WARN The package gulp is included as both a dev and production dependency.
npm WARN The package gulp-eslint is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install 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\xxx\AppData\Roaming\npm-cache\_logs\2018-05-27T12_39_10_497Z-debug.log
また、Python 2.7 と Visual Studio は導入済みです。
-
気になる質問をクリップする
クリップした質問は、後からいつでもマイページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
クリップを取り消します
-
良い質問の評価を上げる
以下のような質問は評価を上げましょう
- 質問内容が明確
- 自分も答えを知りたい
- 質問者以外のユーザにも役立つ
評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。
質問の評価を上げたことを取り消します
-
評価を下げられる数の上限に達しました
評価を下げることができません
- 1日5回まで評価を下げられます
- 1日に1ユーザに対して2回まで評価を下げられます
質問の評価を下げる
teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。
- プログラミングに関係のない質問
- やってほしいことだけを記載した丸投げの質問
- 問題・課題が含まれていない質問
- 意図的に内容が抹消された質問
- 過去に投稿した質問と同じ内容の質問
- 広告と受け取られるような投稿
評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。
質問の評価を下げたことを取り消します
この機能は開放されていません
評価を下げる条件を満たしてません
質問の評価を下げる機能の利用条件
この機能を利用するためには、以下の事項を行う必要があります。
- 質問回答など一定の行動
-
メールアドレスの認証
メールアドレスの認証
-
質問評価に関するヘルプページの閲覧
質問評価に関するヘルプページの閲覧
まだ回答がついていません
15分調べてもわからないことは、teratailで質問しよう!
- ただいまの回答率 88.34%
- 質問をまとめることで、思考を整理して素早く解決
- テンプレート機能で、簡単に質問をまとめられる