Comments (9)
@a-i-ks What's the version of nodejs and npm are you using?
from hap-nodejs.
I had installed the latest version of nodejs accidentally. Then tried to uninstall nodejs again, by deleting all files of nodejs manually. After that I installed node_0.10.36_armhf.deb.
pi@raspberrypi ~ $ node -v
v0.10.36
pi@raspberrypi ~ $ npm -v
1.4.28
from hap-nodejs.
@a-i-ks you shouldn't need to install the extra node-gyp manually. npm bundled its own copy of node-gyp. Can you try skip that step and just do npm rebuild and see if that works?
from hap-nodejs.
@a-i-ks I found that the pre-built version of node that you installed didn't work for me. Try compiling yourself: http://www.armhf.com/node-js-for-the-beaglebone-black/ but replacing with the 0.10.36 version of Node. That seemed to work fine for me.
from hap-nodejs.
@KhaosT I tried to skip the node-gyp installation step and just do npm rebuild. Unfortunately I ran into this error, when I execute "sudo npm rebuild".
pi@raspberrypi ~/HAP-NodeJS $ npm rebuild
[email protected] install /home/pi/HAP-NodeJS/node_modules/curve25519
node-gyp rebuild
gyp ERR! clean error
gyp ERR! stack Error: EACCES, unlink 'build'
gyp ERR! System Linux 3.18.10v7-aufs
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/HAP-NodeJS/node_modules/curve25519
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
....http://pastebin.com/sK1J2pxn
@bjtitus Thanks for your suggestion. I compiled the source code of Node 0.10.36 and installed it as described in the instruction. But after I execute the command 'sudo npm rebuild' in the HAP-NodeJS folder I get the same error message (see above).
Thank you for your help.
from hap-nodejs.
@a-i-ks "stack Error: EACCES", are you sure you have write access to that folder?
from hap-nodejs.
@KhaosT
when I execute "ls -l" I get the following output for the HAP-NodeJS folder
drwxr-xr-x 5 root root 4096 Apr 6 19:52 HAP-NodeJS
Shouldn't I have write permission in any case, when I execute the command 'sudo npm rebuild' (because of sudo)? KhaosT I can give you SSH remote access to my PI, if it would help to figure out, what's wrong.? It would be so good to have an HomeKit Accessory Server running.
from hap-nodejs.
@a-i-ks you didn't use sudo ... "pi@raspberrypi ~/HAP-NodeJS $ npm rebuild"
from hap-nodejs.
Ah true. However, I just tried it with sudo. Same issue :(
from hap-nodejs.
Related Issues (20)
- Accessories states in Home App does not update when controlled manually HOT 12
- handleSnapshotRequest reason sometimes passed in as "undefined" HOT 2
- allow to specify a different IP in mDSN advertisement HOT 2
- Special Characters in Name HOT 6
- Node 16 to 18 update - Alpine - Docker - Synology
- node.js update HOT 1
- Node.js Update HOT 1
- Minimum Current Ambient Light Level warning HOT 1
- Lot of mDNS queries HOT 7
- Test permissions on "persist" storage location before publish
- `updateCharacteristic` won't work after `Client connection closed` HOT 11
- "ControllerStorage for accessory XXX was already initialized!" HOT 1
- How to run HAP-NodeJS inside Docker container HOT 5
- How to update the device status HOT 5
- TypeError: crypto_1.default.getCiphers is not a function at Object../node_modules/hap-nodejs/dist/lib/util/hapCrypto.js HOT 6
- v0.11.0 fails on Synology HOT 15
- VOC Density characteristic incorrectly set as a float and limited to 1000 HOT 4
- Setting Characteristic minValue via setProps results in debug error if the current value is lower than the new minValue HOT 6
- TypeScript plugins do not build with noImplicitAny: true in 1.6.0 HOT 11
- Interpreting Siri Commands HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hap-nodejs.