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

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

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

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

Node.js

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

Q&A

0回答

803閲覧

npm install でのエラー

niiiii

総合スコア6

npm

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

Node.js

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

0グッド

0クリップ

投稿2018/05/27 12:47

とあるソフトをビルドしようとしたのですがエラーが発生しました。

> 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 は導入済みです。

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問