npm 1.1.1 install failed on Mac OS X Lion due to permission errors. See updated log:
CmdTest: Mac admin$ sudo curl install.sh | sh
Error: EACCES in /usr/local/lib/node_modules
npm 1.1.1 install failed on Mac OS X Lion due to permission errors. See updated log:
CmdTest: Mac admin$ sudo curl install.sh | sh
Error: EACCES in /usr/local/lib/node_modules
I ran into similar issues when using npm with Mac OS X Lion. In my case, I had to change the permission settings of the /usr/local/lib/node_modules directory so that the installation tools wouldn’t require elevated privileges every time. I made a backup of the directory, then changed ownership to my user account, which resolved my problem. It was a bit time consuming, but it allowed me to install and update packages smoothly afterwards. I recommend verifying your directory ownership and permission settings to avoid these permission errors.