###前提・実現したいこと
OSはUbuntu16.04を使用しています
npm install midiを実行してもエラーが表示されインストールできません
node-gyp rebuildでエラーが発生しているようです。
###発生している問題・エラーメッセージ
エラーメッセージの一部を以下に示します。
> midi@0.9.4 install /home/gb/e/node_modules/midi > node-gyp rebuild make: ディレクトリ '/home/gb/e/node_modules/midi/build' に入ります CXX(target) Release/obj.target/midi/src/node-midi.o In file included from ../src/node-midi.cpp:1:0: ../../nan/nan.h:590:20: error: variable or field ‘AddGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback ^ ../../nan/nan.h:590:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback ^ ../../nan/nan.h:591:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ../../nan/nan.h:596:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback) { ^ ../../nan/nan.h:596:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCEpilogueCallback callback) { ^ ../../nan/nan.h:601:20: error: variable or field ‘AddGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback ^ ../../nan/nan.h:601:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback ^ ../../nan/nan.h:602:18: error: expected primary-expression before ‘gc_type_filter’ , v8::GCType gc_type_filter = v8::kGCTypeAll) { ^ ../../nan/nan.h:607:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void v8::Isolate::GCPrologueCallback callback) { ^ ../../nan/nan.h:607:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’ v8::Isolate::GCPrologueCallback callback) { ^ midi.target.mk:90: ターゲット 'Release/obj.target/midi/src/node-midi.o' のレシピで失敗しました make: *** [Release/obj.target/midi/src/node-midi.o] エラー 1 make: ディレクトリ '/home/gb/e/node_modules/midi/build' から出ます gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Linux 4.4.0-22-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/gb/e/node_modules/midi gyp ERR! node -v v6.2.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/home/gb/e/package.json' npm WARN e No description npm WARN e No repository field. npm WARN e No README data npm WARN e No license field. npm ERR! Linux 4.4.0-22-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "midi" npm ERR! node v6.2.0 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE npm ERR! midi@0.9.4 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the midi@0.9.4 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the midi package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs midi npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls midi npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/gb/e/npm-debug.log
###試したこと
build-essentialと libasound2-devをインストールしました
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。