Error installing coffeescript #1922

Closed
jaimeiniesta opened this Issue Dec 22, 2011 · 3 comments

Comments

Projects
None yet
5 participants

I'm on Mac OSX Lion, with node just installed with the mac installer from http://nodejs.org/#download

$ node -v
v0.6.6

$ npm -v
1.1.0-beta-4

$ npm install -g coffeescript
npm http GET https://registry.npmjs.org/coffeescript
npm http 404 https://registry.npmjs.org/coffeescript
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:428:34)
npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:415:44)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:408:5
npm ERR! at Object.saved as oncomplete
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "coffeescript"
npm ERR! cwd /Users/jaime
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! type obj_ctor_property_non_object
npm ERR! arguments [ 'keys' ]
npm ERR! message Object.keys called on non-object
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/jaime/npm-debug.log
npm not ok

I have the exact same issue...
I recursively changed the owner of /usr/local/lib/node and /usr/local/lib/node_modules to myself, and then re-ran npm install -g coffe-script ant it worked.
We should not have to do this. The node install should set the permissions properly to allow coffee to be installed.

run the command with sudo.

sudo npm install -g coffee-script

Apparently, that dash between coffee and script is important. :-/

mfncooper closed this Feb 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment