Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在Raspberry Pi上安装NPM bmp085模块时出错_Linux_Npm_Node Red - Fatal编程技术网

Linux 在Raspberry Pi上安装NPM bmp085模块时出错

Linux 在Raspberry Pi上安装NPM bmp085模块时出错,linux,npm,node-red,Linux,Npm,Node Red,我正在尝试在raspberry pi上安装npm模块bmp085,但不断出现错误。节点Red已安装并在Pi上工作。我不太清楚错误消息在抱怨什么,我想它在抱怨版本,但我不知道是哪个版本和什么。据apt称,所有内容都是最新版本 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node

我正在尝试在raspberry pi上安装npm模块bmp085,但不断出现错误。节点Red已安装并在Pi上工作。我不太清楚错误消息在抱怨什么,我想它在抱怨版本,但我不知道是哪个版本和什么。据apt称,所有内容都是最新版本

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:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.1.7+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-red-contrib-bmp085/node_modules/bmp085/node_modules/i2c
gyp ERR! node -v v0.12.6
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm ERR! Linux 4.1.7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "node-red-contrib-bmp085"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE

npm ERR! i2c@0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the i2c@0.1.8 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the i2c 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 their info via:
npm ERR!     npm owner ls i2c
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /var/rpi/node-red/npm-debug.log

我看了上面提到的日志,我也不明白。

因为错误说这是构建i2c模块的问题

由于您运行的是节点0.12,因此可能需要更新bmp085模块以使用较新版本的i2c模块,因为i2c模块的页面表明,对于较新的节点0.11,您需要大于0.1.8的版本


目前的最新版本是0.2.0

谢谢,你说得对。我能让它工作node@0.10.29及i2c@1.8(正好是拉斯皮·杰西)。