npm permissions error

Phil Dobbin phildobbin at gmail.com
Sun Mar 11 13:50:12 PDT 2012


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

Hi, all.

I'm using npm to install something from npmjs.org & even though I'm
using sudo I'm getting:

`npm ERR! Error: EPERM, operation not permitted '/opt/local/bin/npm'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "/opt/local/bin/node"
"/private/var/folders/QU/QUp3HUtzF3qX4y3OTcpg7E+++TM/-Tmp-/npm.50667/package/cli.js"
"install" "-gf"
npm ERR! cwd
/private/var/folders/QU/QUp3HUtzF3qX4y3OTcpg7E+++TM/-Tmp-/npm.50667/package
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! path /opt/local/bin/npm
npm ERR! code EPERM
npm ERR! message EPERM, operation not permitted '/opt/local/bin/npm'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!
/private/var/folders/QU/QUp3HUtzF3qX4y3OTcpg7E+++TM/-Tmp-/npm.50667/package/npm-debug.log
npm not ok
It failed`

Any ideas on why /opt/local/bin is denying me access?

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/

iQEcBAEBAgAGBQJPXRABAAoJEKpMeDHWT5ADph0H/2NWgPiCYMPcsDQdbHApnLyw
uiJ1usE9Xe5G/OIc4S8C+xX1hvmth9E4iYi+rIHHrv7ogLBhQd8JVOXJEViaVeXP
Eh0SsxFknnisKzqpYc7nT1T+6DnTWUNVgvoMt0epzD18JmPforMauPbZ6HIQ/Qxa
1cTwM0hQGIqLWJRz95/UZy9jHzIbLsWpEH9Si6SrUV0eVSPMlyryY+SjUSysCi19
J4eCkvQHa7q2HhNGM5wREzeGorfowR0Z/L7ehR6UzZ+OJ5gCemmbIkoiK/VMPdEu
2442F+PMa6+lA0R2wrnpXalPymcN21dH0C8St2EpVcvQRQcK+GFumoNZftXMXDM=
=z+g8
-----END PGP SIGNATURE-----


More information about the macports-users mailing list