vendredi 20 février 2015

Node.js no such file or directory

I'm trying to install node/npm on a shared server for some testing. As its shared, I'm trying to install it in my own folder, ~/usr/bin


I've extracted the tar, and can see node/npm...



ls /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin
node npm


If I echo $PATH (as I have modified .bashrc) I see the folder...



/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/local/msql/bin:/usr/games:.:/kunden/homepages/myId/htdocs/usr/bin/nodejs/bin


Now if I call npm or node, it 'finds' the node file, but then says



line 2: /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node: No such file or directory


even if I put in the full path it says this, so it appears npm/node is looking for another file it can't find ?


I can see the file it says...



file /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node
/kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped


So I know in my path it can see node/npm fine. Is there some other file its looking for that I've missed ?


Aucun commentaire:

Enregistrer un commentaire