npm permissions error

Phil Dobbin phildobbin at gmail.com
Mon Mar 12 06:51:14 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/03/2012 21:26, Ryan Schmidt wrote:
> 
> On Mar 11, 2012, at 16:01, Phil Dobbin wrote:
> 
>> On 11/03/2012 20:50, Phil Dobbin wrote:
>>
>>> I'm using npm to install something from npmjs.org & even though
>>> I'm using sudo I'm getting:
>>
>> [snip]
>>
>> Scrub that. I figured it out.
> 
> What was the solution?
> 
> You shouldn't be using sudo with npm. npm is for installing node modules locally.
> 
> Projects that recommend the use of "npm -g" for a global install should instead have an entire MacPorts port made for them. 


I checked on one of my Linux boxes & you actually have to be root to
install: sudo will not do it. I haven't enabled root on my OS X box & I
probably won't so I'm considering as to whether it's worth the bother to
see if nodejs/npm can be installed into $HOME/ on OS X or to just stick
to using Linux for all node related actives & use my existing node
GitHub repos for anything I need to add from the OS X box.

As an aside, the way OS X/Ubuntu go about coping with permissions, along
with Windows, sucks. The first password you create on any OS
installation should be the root password IMO.

Cheers,

  Phil...

- -- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPXf9OAAoJEKpMeDHWT5ADOC8H/1Ro6g5govSb8umruJc+CnRj
2Ab70kxGoBpccPmsYqcEFv0PMRwJw+d62CacySOgBko7+20qCTAlPLpFe9vYuwOc
J6b6wOw6u2IuW+1bJZSVayeA5dMcLXqyToC/JjZOdvxHkiiuBvyVKNjE8ZmOaa/s
/lgkzsq35tC48M4OzuZ32QFrlYTMNPxjGfd8Xy1fvWnnSf4nPp3numJMOdpXnnoW
4vzbiy5zu5q5mSWr/3z3BMOElKPhM7SATeIV6heKXHwh9M2FSR7fMRBOswmukJiv
7bYZ3aulW3kWg/76K3QLdxTKlqKISPi8oQ2VPe6nKD0wrE/ReUcNvE+2Jths72Y=
=TOeK
-----END PGP SIGNATURE-----


More information about the macports-users mailing list