Welcome to the Treehouse Community
Looking to learn something new?
env: node: Permission denied when trying to install Grunt via homebrew
I'm trying to install node with these instructions:
After this step:
npm install -g grunt-cli
I get this error: env: node: Permission denied.
I'm new to this stuff and have no idea what's wrong. I'd greatly appreciate any help on this issue.
My operating system is 10.8.5
Serge Honderdos8,918 Points
Try running: sudo npm install -g grunt-cli
sudo stands for Super User Do. Effectively, sudo allows a user to run a program as another user (most often the root user).
Thanks so much Serge,
I tried with sudo and it seems to be installed.
"Which grunt" command shows me the file path to where it's installed.
How ever, when I try: grunt --version
I get the same env: node: Permission denied.
Any idea why I get the error?
I can't get the version information even if I use sudo in my command.
What could be the cause of this?