使用npm安装johnny-five的错误

时间:2013-06-28 13:12:41

标签: npm johnny-five

我正在尝试使用npm安装Johnny Five,但我一直在收到错误。 这是我在终端窗口中得到的。

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/nevosegal/GitHub/node_modules/firmata/node_modules/serialport
gyp ERR! node -v v0.10.10
gyp ERR! node-gyp -v v0.9.6
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

以下是日志文件。任何人吗?

2793 error Error: ENOENT, lstat '/Users/nevosegal/GitHub/node_modules/johnny-five/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js'
2794 error If you need help, you may report this log at:
2794 error     <http://github.com/isaacs/npm/issues>
2794 error or email it to:
2794 error     <npm-@googlegroups.com>
2795 error System Darwin 12.4.0
2796 error command "node" "/usr/local/bin/npm" "install" "johnny-five"
2797 error cwd /Users/nevosegal/GitHub
2798 error node -v v0.10.10
2799 error npm -v 1.2.25
2800 error path /Users/nevosegal/GitHub/node_modules/johnny-five/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
2801 error fstream_path /Users/nevosegal/GitHub/node_modules/johnny-    five/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
2802 error fstream_type File
2803 error fstream_class FileWriter
2804 error code ENOENT
2805 error errno 34
2806 error fstream_stack         /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
2806 error fstream_stack Object.oncomplete (fs.js:107:15)
2807 verbose exit [ 34, true ]

由于

1 个答案:

答案 0 :(得分:7)

我猜你是在Mac上。您需要程序make。从应用商店安装XCode,然后安装包含make的包。

Where can I find "make" program for Mac OS X Lion?