carlos8f / buffet

Performance-oriented static file server
http://carlos8f.github.com/node-buffet
190 stars 12 forks source link

Cannot npm install #20

Closed danmactough closed 9 years ago

danmactough commented 9 years ago

Tried to npm install in a new project and got the following error. I tried removing the npm cache directory and retried -- same result.

⇰ npm i --save buffet
npm info it worked if it ends with ok
npm info using npm@1.4.28
npm info using node@v0.10.37
npm WARN package.json jade@0.26.3 No README data
npm WARN package.json string_decoder@0.10.31 string_decoder is also the name of a node core module.
npm info trying registry request attempt 1 at 15:51:40
npm http GET https://registry.npmjs.org/buffet
npm http 304 https://registry.npmjs.org/buffet
npm info install buffet@1.0.4 into /Users/dan/code/shorturl
npm info installOne buffet@1.0.4
npm info preinstall buffet@1.0.4
npm info trying registry request attempt 1 at 15:51:40
npm http GET https://registry.npmjs.org/commander
npm info trying registry request attempt 1 at 15:51:40
npm http GET https://registry.npmjs.org/dish
npm info trying registry request attempt 1 at 15:51:40
npm http GET https://registry.npmjs.org/middler
npm info trying registry request attempt 1 at 15:51:40
npm http GET https://registry.npmjs.org/accesslog
npm ERR! Failed to change folder ownership under npm cache for %s /Users/dan/.npm/_git-remotes/https-gist-github-com-cd931ba95481a7570602-git-4767b2d5
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/accesslog
npm http 304 https://registry.npmjs.org/dish
npm http 304 https://registry.npmjs.org/middler
npm ERR! Error: ENOENT, readdir '/Users/dan/.npm/_git-remotes/https-gist-github-com-cd931ba95481a7570602-git-4767b2d5/hooks/pre-commit'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 14.1.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--save" "buffet"
npm ERR! cwd /Users/dan/code/shorturl
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path /Users/dan/.npm/_git-remotes/https-gist-github-com-cd931ba95481a7570602-git-4767b2d5/hooks/pre-commit
npm ERR! code ENOENT
npm ERR! errno 34
npm info preuninstall buffet@1.0.4
npm info uninstall buffet@1.0.4
npm info postuninstall buffet@1.0.4
npm ERR! not ok code 0

Possibly a problem with middler, judging from the error, but I got it installing buffet, so reporting here first.

carlos8f commented 9 years ago

Hmm, I am unable to reproduce on my laptop or VPS. Could be a permissions issue from the looks of it, but if you retried and got the same error, that's odd.

danmactough commented 9 years ago

Oh, man. Sorry. Just figured this out. Totally on my end. My ~/.git_template/hooks/pre-commit is symlinked to a missing file. (Hence the ENOENT error.) Pretty shitty for npm to error out on this IMO, but whatever.