niutech / node.php

Run node.js apps from PHP even on a shared hosting!
817 stars 235 forks source link

Error: 127 when running on godaddy.com shared hosting #4

Closed wert134 closed 9 years ago

wert134 commented 9 years ago

Hi, I have successfully installed node.js on my website using node.php, however when I try to use npm install to install the samples package or another package I get this output:

capture

Any help would be greatly appreciated. Node.php seems great. Thanks.

niutech commented 9 years ago

Error 127 means "command not found". Probably there is something wrong with the path. I would connect to your account by SSH and type the npm command from there.

niutech commented 9 years ago

Closing since no updates on the issue.

joonbizzle commented 8 years ago

When typing in the npm command, the terminal window returns -bash: npm: command not found.

niutech commented 8 years ago

This means the npm binary is not in the path. Check if the node folder exists in the same folder where node.php is. Then check if node/bin/npm exists and has Execute permission set. Node.php executes ./node/bin/npm under the hood.

Another option is the 32/64-bit mismatch, as described here.