niutech / node.php

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

NPM not working #20

Open irfanwv opened 8 years ago

irfanwv commented 8 years ago

When I am trying to run node.php?npm=install jt-js-sample Then it is return Failed. Error: 4. See npm-debug.log I want to install express, socket.io, and mysql via NPM. How can I did?

niutech commented 8 years ago

Error 4 means Interrupted system call. This could mean that your OS is unsupported. I cannot reproduce it myself, so I cannot help you, but you can go through the Troubleshoot steps in the README. Since node.php runs in non-privilege mode, you cannot install mysql or open web sockets with sockets.io.