Sunday 12 March 2017

Error running node on Yosemite

Apologies in advance if this is a rookie question, I am brand new to Node.js and I am trying to learn. I have successfully installed Node on my laptop and added the folder to my PATH variable:

export PATH=$PATH:/usr/local/bin

However, when I try to run a simple program to test, I get the following error:

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

I got it to work by granting 755 on /usr/local/bin but I am not sure if that is a good idea as it grants everyone read and execute rights on a bin directory!

Does anyone know of a better way to do this? Is my concern even justified?

Thanks in advance for your kind help.



via Pouyan Aminian

No comments:

Post a Comment