Tag: pi2

为什么更高版本的Node需要很长时间才能安装?

我在Raspberry Pi上使用Raspbian上的nvm。 当我nvm install v0.10.26它发生在几分钟内。 当我nvm install v0.12.6它必须克++和cc一堆东西,它需要永远。 为什么区别? 看起来它正在努力构buildOpenSSL,V8和encryption。 在Node.js的更高版本中是否有新的或不同的东西?

错误:'REPLACE_INVALID_UTF8'不是'v8 :: String'的成员

所以我想在Raspbian中构build这个nodejs工具 。 所以作为说明说我需要npm install我继续前进,安装节点与apt-get: sudo apt-get install nodejs npm 然后我尝试编译/安装,我得到这个错误: $ npm install > configure@0.0.1 install /home/pi/Documents/Code/buzzerbot9000/node_modules/configure > node install.js sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! configure@0.0.1 install: `node install.js` npm ERR! […]

从python脚本启动节点应用程序

是否有可能在一个覆盆子pi的Python脚本内启动一个node.js应用程序? 在命令行我运行sudo node myscript.js 我可以使用类似os的库吗?

树莓PI mdns getaddrinfo 3008错误

我有这个示例Node.js脚本: var mdns = require('mdns'); var browser = mdns.createBrowser(mdns.tcp('http')); browser.on('error', function (error) { console.log("error"); console.log(error); }); browser.on('serviceUp', function (service) { console.log("serviceUp"); console.log(service); }); browser.start(); 在我的Mac上工作正常,并find两个服务。 如果我在运行Raspbean的 Raspberry PI 2 (连接到同一networking)上运行完全相同的脚本, 则会得到以下输出: pi@raspberrypi ~ $ node mdns.js *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix […]

在树莓派2上安装node.js

我已经在Raspberry Pi 2上安装了Raspbian,现在我正在尝试在其上安装node.js,但是我遇到了一个问题。 我按照指示input了这些命令到terminal wget http://node-arm.herokuapp.com/node_latest_armhf.deb sudo dpkg -i node_latest_armhf.deb 但是当我检查使用的节点的版本 node -v 我得到这个错误: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node) node: /lib/arm-linus-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by node) 我是使用覆盆子pi相当新,所以任何帮助解决这个问题将是伟大的!