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

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

新規登録して質問してみよう
ただいま回答率
85.50%
Node.js

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

Q&A

解決済

1回答

2910閲覧

npm install midiを実行してもインストールできない

退会済みユーザー

退会済みユーザー

総合スコア0

Node.js

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

0グッド

0クリップ

投稿2016/06/03 15:29

編集2016/06/03 15:42

###前提・実現したいこと
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をインストールしました

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

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

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

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

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

guest

回答1

0

ベストアンサー

Mac 上での すこし古い node では、unstall できました。

$ node -v v5.9.1 $ npm install midi -g > midi@0.9.4 install /Users/katoy/.nodebrew/node/v5.9.1/lib/node_modules/midi > node-gyp rebuild 2016-06-04 13:39:46.139 xcodebuild[9121:104162] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs CXX(target) Release/obj.target/midi/src/node-midi.o SOLINK_MODULE(target) Release/midi.node /Users/katoy/.nodebrew/node/v5.9.1/lib └─┬ midi@0.9.4 ├── bindings@1.2.1 └── nan@2.0.9

npm "error: variable or field ‘AddGCEpilogueCallback’ declared void v8::Isolate::GCEpilogueCallback callback"
で、google 検索してみてはいかがでしょう。

node の version が関係している気がします。

投稿2016/06/04 04:51

katoy

総合スコア22324

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問