trying to run npm install

509 views
Skip to first unread message

Daniela Wellisz

unread,
Jan 21, 2012, 8:15:06 PM1/21/12
to Peanutty!
Hey Jared,
I'm trying to get the code running locally and am running into issues
really early on. I updated my versions of node and npm, cloned the
repo, and then tried running npm install. Not sure if I'm running into
issues based on my machine or npm issues or if there's a step I'm
missing. Here's the output I get when I run npm install: :

npm WARN js...@0.2.4 package.json: bugs['web'] should probably be
bugs['url']
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/ender
npm http GET https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/ender
npm http 304 https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/coffee-script
npm ERR! error installing le...@1.2.0
npm ERR! error installing en...@0.8.3
npm ERR! error installing coffee...@1.2.0
npm ERR! error rolling back le...@1.2.0 Error: Refusing to delete: /
Users/dwellisz/workspace/Peanutty/node_modules/.bin/lessc not in /
Users/dwellisz/workspace/Peanutty/node_modules/less
npm ERR! error rolling back le...@1.2.0 at clobberFail (/usr/local/
lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back le...@1.2.0 at next (/usr/local/lib/
node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back le...@1.2.0 at clobberTest (/usr/local/
lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
npm ERR! error rolling back le...@1.2.0 at Object.oncomplete (/usr/
local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:70:29)

npm ERR! Refusing to delete: /Users/dwellisz/workspace/Peanutty/
node_modules/.bin/lessc not in /Users/dwellisz/workspace/Peanutty/
node_modules/less
npm ERR! File exists: /Users/dwellisz/workspace/Peanutty/
node_modules/.bin/lessc
npm ERR! Move it away, and try again.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/dwellisz/workspace/Peanutty
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /Users/dwellisz/workspace/Peanutty/node_modules/.bin/
lessc
npm ERR! code EEXIST
npm ERR! message Refusing to delete: /Users/dwellisz/workspace/
Peanutty/node_modules/.bin/lessc not in /Users/dwellisz/workspace/
Peanutty/node_modules/less
npm ERR! errno {}
npm ERR! error rolling back en...@0.8.3 Error: Refusing to delete: /
Users/dwellisz/workspace/Peanutty/node_modules/.bin/ender not in /
Users/dwellisz/workspace/Peanutty/node_modules/ender
npm ERR! error rolling back en...@0.8.3 at clobberFail (/usr/local/
lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back en...@0.8.3 at next (/usr/local/lib/
node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back en...@0.8.3 at clobberTest (/usr/local/
lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
npm ERR! error rolling back en...@0.8.3 at Object.oncomplete (/usr/
local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:70:29)
npm ERR! error rolling back coffee...@1.2.0 Error: Refusing to
delete: /Users/dwellisz/workspace/Peanutty/node_modules/.bin/coffee
not in /Users/dwellisz/workspace/Peanutty/node_modules/coffee-script
npm ERR! error rolling back coffee...@1.2.0 at clobberFail (/
usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back coffee...@1.2.0 at next (/usr/
local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back coffee...@1.2.0 at clobberTest (/
usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
npm ERR! error rolling back coffee...@1.2.0 at
Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/rimraf/
rimraf.js:70:29)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/dwellisz/workspace/Peanutty/npm-debug.log
npm not ok


Let me know if there's anything you can think of that I may have
missed. If not, no worries. I'll just keep googling.
Best,
Daniela

Daniela Wellisz

unread,
Jan 21, 2012, 8:21:37 PM1/21/12
to pean...@googlegroups.com
Alright, reinstalled using --force and everything worked. Not sure why this was needed since I didn't previously have coffee-script on my local machine. Not sure if there's some thing to be done to make this install work more gracefully.

-d

Jared Cosulich

unread,
Jan 21, 2012, 8:38:44 PM1/21/12
to Peanutty!
Daniela,

Yea, I can guarantee you're going to have a few other issues as
well :)

I would definitely struggle to get it installed myself if I tried
again.

If you're able to keep track of problems and solutions I think that
would help. Definitely let me know if you run in to any other issues.

Jared



On Jan 21, 5:21 pm, Daniela Wellisz <daniela.well...@gmail.com> wrote:
> Alright, reinstalled using --force and everything worked. Not sure why this was needed since I didn't previously have coffee-script on my local machine.  Not sure if there's some thing to be done to make this install work more gracefully.
>
> -d
> On Jan 21, 2012, at 5:15 PM, Daniela Wellisz wrote:
>
>
>
>
>
>
>
> > Hey Jared,
> > I'm trying to get the code running locally and am running into issues
> > really early on. I updated my versions of node and npm, cloned the
> > repo, and then tried running npm install. Not sure if I'm running into
> > issues based on my machine or npm issues or if there's a step I'm
> > missing.  Here's the output I get when I run npm install: :
>
> > npm WARN js...@0.2.4 package.json: bugs['web'] should probably be
> > bugs['url']
> > npm http GEThttps://registry.npmjs.org/coffee-script
> > npm http GEThttps://registry.npmjs.org/less
> > npm http GEThttps://registry.npmjs.org/ender
> > npm http GEThttps://registry.npmjs.org/jsdom
> > npm http 304https://registry.npmjs.org/less
> > npm http 304https://registry.npmjs.org/ender
> > npm http 304https://registry.npmjs.org/jsdom
> > npm http 304https://registry.npmjs.org/coffee-script
> > npm ERR! error installing l...@1.2.0
> > npm ERR! error installing en...@0.8.3
> > npm ERR! error installing coffee-scr...@1.2.0
> > npm ERR! error rolling back l...@1.2.0 Error: Refusing to delete: /
> > Users/dwellisz/workspace/Peanutty/node_modules/.bin/lessc not in /
> > Users/dwellisz/workspace/Peanutty/node_modules/less
> > npm ERR! error rolling back l...@1.2.0     at clobberFail (/usr/local/
> > lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
> > npm ERR! error rolling back l...@1.2.0     at next (/usr/local/lib/
> > node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
> > npm ERR! error rolling back l...@1.2.0     at clobberTest (/usr/local/
> > lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
> > npm ERR! error rolling back l...@1.2.0     at Object.oncomplete (/usr/
> > npm ERR! error rolling back coffee-scr...@1.2.0 Error: Refusing to
> > delete: /Users/dwellisz/workspace/Peanutty/node_modules/.bin/coffee
> > not in /Users/dwellisz/workspace/Peanutty/node_modules/coffee-script
> > npm ERR! error rolling back coffee-scr...@1.2.0     at clobberFail (/
> > usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
> > npm ERR! error rolling back coffee-scr...@1.2.0     at next (/usr/
> > local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
> > npm ERR! error rolling back coffee-scr...@1.2.0     at clobberTest (/
> > usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:92:28)
> > npm ERR! error rolling back coffee-scr...@1.2.0     at

Jared Cosulich

unread,
Jan 21, 2012, 9:06:37 PM1/21/12
to Peanutty!
Also I have no idea if there is a way to make the install more
graceful. Would be good to figure out if there was, but not very fun.

If anyone else has a lot of problems that will probably inspire me to
dig in to a bit more, so please let me know.

Daniela Wellisz

unread,
Jan 22, 2012, 12:19:54 AM1/22/12
to pean...@googlegroups.com
What command do you use to run the server? I tried node build/server/server.js and I get "Error: Cannot find module './lib/index'"

Max Brunsfeld

unread,
Jan 28, 2012, 1:54:55 PM1/28/12
to Peanutty!
I had a similar error when i tried to run npm install. I had to delete
everything in the node_modules directory and then it worked.
Reply all
Reply to author
Forward
0 new messages