Giter VIP home page Giter VIP logo

Comments (9)

KhaosT avatar KhaosT commented on May 28, 2024

@a-i-ks What's the version of nodejs and npm are you using?

from hap-nodejs.

a-i-ks avatar a-i-ks commented on May 28, 2024

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.

KhaosT avatar KhaosT commented on May 28, 2024

@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.

bjtitus avatar bjtitus commented on May 28, 2024

@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.

a-i-ks avatar a-i-ks commented on May 28, 2024

@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.

KhaosT avatar KhaosT commented on May 28, 2024

@a-i-ks "stack Error: EACCES", are you sure you have write access to that folder?

from hap-nodejs.

a-i-ks avatar a-i-ks commented on May 28, 2024

@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.

KhaosT avatar KhaosT commented on May 28, 2024

@a-i-ks you didn't use sudo ... "pi@raspberrypi ~/HAP-NodeJS $ npm rebuild"

from hap-nodejs.

a-i-ks avatar a-i-ks commented on May 28, 2024

Ah true. However, I just tried it with sudo. Same issue :(

from hap-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.