A
A
Alex2014-11-13 17:53:16
Node.js
Alex, 2014-11-13 17:53:16

Nodejs & gulp from sudo ?

Good afternoon.
Installed nodejs, gulp, etc. on ubuntu 14
C came up with two questions.
1) To run Node, you need to enter nodejs. Those. if we want to look at the version, then we write nodejs -v. Why doesn't node -v work?
2) Gulp with the connect module requires that it be run under sudo.
$ sudo gulp
How to make it possible to run it without sudo ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-11-13
@sensus

1) If you installed via apt-get, then just write nodejs -v or make an alias in ~/.bashrc - alias node=nodejs
2) I suspect that you specified port 80 for connect (port range up to 1024 can only be used with administrator rights)

M
Marat Amerov, 2014-11-16
@amerov

I recommend nvm will not clog the system and require root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question