0

我正在尝试使用 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 ]

谢谢

4

1 回答 1

7

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

我在哪里可以找到 Mac OS X Lion 的“制作”程序?

于 2013-06-28T13:22:44.663 回答