Reputation: 303
I have installed Node.js, NVM and NPM according to : https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
My working directory looks like this:
Working_Files\WebRTC which contains the files:
and
Working_Files\WebRTC\views which contains an index file:
index.ejs
In Working_Files\WebRTC, in order to run the server, using:
node server.js
every time I have to repeat the process explained in the installation, otherwise I receive the error:
node server.js
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
Try: sudo apt-get install <selected package>
where the error does stand please?
Thank you
Upvotes: 0
Views: 1265
Reputation: 2659
Try this: sudo ln -s "$(which nodejs)" /usr/bin/node
And run again node server.js
Upvotes: 1