You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: 127 when running on godaddy.com shared hosting #4
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:
Any help would be greatly appreciated. Node.php seems great.
Thanks.
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.
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.
Activity
niutech commentedon Apr 28, 2015
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
npmcommand from there.niutech commentedon Sep 28, 2015
Closing since no updates on the issue.
joonbizzle commentedon Feb 22, 2016
When typing in the
npmcommand, the terminal window returns-bash: npm: command not found.niutech commentedon Feb 24, 2016
This means the
npmbinary is not in the path. Check if thenodefolder exists in the same folder wherenode.phpis. Then check ifnode/bin/npmexists and has Execute permission set. Node.php executes./node/bin/npmunder the hood.Another option is the 32/64-bit mismatch, as described here.