Closed adamyeats-zz closed 11 years ago
You are correct, local-tld needs to NOT be run as sudo
and this should be made more clear. I didn’t realize people would have a non-user-writable gobal node_modules folder. If you send a PR, I’m happy to merge it right away.
Closing as docs are now updated. :)
When running through the install steps in the README, I assumed that I should probably run
npm install -g local-tld
assudo
, as I do with most other global Node module installations. When running assudo
, the script tries to runlaunchctl
and asks for mysudo
password for a second time, only now my regular password does not work.Here's a dump from my console:
Running the install without
sudo
works as expected.Install target is a Mac running 10.8.3 and Node v0.10.5.
I realise that this is not a bug with Hoodie and I am, of course, at fault as I didn't follow the instructions to the letter, however I think it's fair to assume that others will make the same mistake I have as it is often a requirement to run global module installs with
sudo
.Unless anyone can establish if this is an issue local to my machine, can I suggest a slight tweak to the docs that explicitly says not to run
npm install -g local-tld
assudo
? Happy to submit the PR myself.