demi demi - 3 months ago 47
Javascript Question

Node.js bash: /usr/local/bin/node: Permission denied

I'm installing Node.js on Ubuntu machine. I followed official instructions:

./configure && make && sudo make install

So, I got node binary in
and all dependencies. But when I run it from command line I get permission error:

> node
bash: /usr/local/bin/node: Permission denied

How can I fix it? How can I run it under my account?
sudo node
doesn't work too.


You need read- and executable permissions for others. Issue:

sudo chmod +rx $(which node)


sudo chmod 755 $(which node)

However, normally make install should set that permissions. Looks like something in the Makefile is wrong.