Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Cannot install anything with node v0.6.11 and npm v1.1.1 for windows #2823

Closed
tacoman667 opened this issue Feb 24, 2012 · 4 comments
Closed

Comments

@tacoman667
Copy link

Here is my error:

info it worked if it ends with ok
verbose cli [ 'c:\Program Files (x86)\nodejs\node.exe',
verbose cli 'c:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js',
verbose cli 'install',
verbose cli 'express',
verbose cli '--verbose' ]
info using npm@1.1.1
info using node@v0.6.11
verbose config file C:\Users\tacoman667.npmrc
verbose config file c:\Program Files (x86)\nodejs\etc\npmrc
verbose config file c:\Program Files (x86)\nodejs\node_modules\npm\npmrc
verbose mkdir done: C:\Users\tacoman667\AppData\Roaming\npm 755
verbose mkdir done: c:\projects\OEE_git 755
verbose cache add [ 'express', null ]
silly cache add: name, spec, args [ undefined, 'express', [ 'express', null ] ]
verbose parsed url { pathname: 'express', path: 'express', href: 'express' }
verbose addNamed [ 'express', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'express', '', false ]
verbose raw, before any munging express
verbose url resolving [ 'https://registry.npmjs.org/', './express' ]
verbose url resolved https://registry.npmjs.org/express
verbose etag "3C8IV1I96MAC8GUQ2925I9XD4"
http GET https://registry.npmjs.org/express
http 304 https://registry.npmjs.org/express
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"3C8IV1I96MAC8GUQ2925I9XD4"',
silly get cb date: 'Fri, 24 Feb 2012 13:17:32 GMT',
silly get cb 'content-length': '0' } ]
verbose etag express from cache
verbose mkdir done: C:\Users\tacoman667\AppData\Roaming\npm-cache\express 755
silly name, range, hasData 2 [ 'express', '', true ]
silly versions [ 'express',
silly versions [ '0.14.0',
silly versions '0.14.1',
silly versions '1.0.0beta',
silly versions '1.0.0beta2',
silly versions '1.0.0rc',
silly versions '1.0.0rc2',
silly versions '1.0.0rc3',
silly versions '1.0.0rc4',
silly versions '1.0.0',
silly versions '1.0.1',
silly versions '1.0.2',
silly versions '1.0.3',
silly versions '1.0.4',
silly versions '1.0.5',
silly versions '1.0.6',
silly versions '1.0.7',
silly versions '2.5.0',
silly versions '2.5.1',
silly versions '2.5.2',
silly versions '2.5.3',
silly versions '2.5.4',
silly versions '2.5.5',
silly versions '2.5.6',
silly versions '2.5.7',
silly versions '2.5.8' ] ]
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.20-win32-ia32-6.1.7601',
verbose bin dist { shasum: 'f166b55d4e8c6d2307ef88ad1768209613f7452a',
verbose bin dist tarball: 'http://registry.npmjs.org/express/-/express-2.5.8.tgz' } ]
verbose addRemoteTarball [ 'https://registry.npmjs.org/express/-/express-2.5.8.tgz',
verbose addRemoteTarball 'f166b55d4e8c6d2307ef88ad1768209613f7452a' ]
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736'
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003'
verbose mkdir done: C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003 755
verbose fetch to C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003\tmp.tgz
verbose mkdir done: C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003 755
http GET https://registry.npmjs.org/express/-/express-2.5.8.tgz
http 200 https://registry.npmjs.org/express/-/express-2.5.8.tgz
silly updated sha bytes 40960
info shasum f166b55d4e8c6d2307ef88ad1768209613f7452a
info shasum C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003\tmp.tgz
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\tacoman667\AppData\Local\Temp\npm-1330089452736\1330089452736-0.27139637991786003___package.npm'
ERR! Error: User and Group IDs must be an integer.
ERR! at Object. (fs.js:539:11)
ERR! at Object.chown (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:229:17)
ERR! at Object.MKDIRCB [as oncomplete](c:Program Files %28x86%29nodejsnode_modulesnpmlibutilsmkdir-p.js:155:23)
ERR! You may report this log at:
ERR! http://github.com/isaacs/npm/issues
ERR! or email it to:
ERR! npm-@googlegroups.com
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "c:\Program Files (x86)\nodejs\node.exe" "c:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express" "--verbose"
ERR! cwd c:\projects\OEE_git
ERR! node -v v0.6.11
ERR! npm -v 1.1.1
ERR! message User and Group IDs must be an integer.
verbose exit [ 1, true ]

@isaacs
Copy link

isaacs commented Feb 24, 2012

Hm, on the same platform, I don't see that issue.

What does npm config ls output?

@tacoman667
Copy link
Author

$ npm config ls
; cli configs
showlevel = 2

; userconfig C:\Users\jrhard.npmrc
unsafe-perm = false

; builtin config c:\Program Files (x86)\nodejs\node_modules\npm\npmrc
prefix = "C:\Users\tacoman667\AppData\Roaming\npm"

; node install prefix = undefined
; node bin location = c:\Program Files (x86)\nodejs\node.exe
; cwd = c:\projects\OEE_git
; HOME = C:\Users\tacoman667
; 'npm config ls -l' to show all defaults.

@isaacs
Copy link

isaacs commented Feb 26, 2012

Aha. the unsafe-perm=false is throwing it off. Try doing this:

npm config delete unsafe-perm

On windows, there's no "nobody" user, and the permission model is different, so this setting is unnecessary. If this fixes the problem for you, then I'll investigate why it causes problems on windows, since it should have no effect there.

@isaacs isaacs closed this as completed Feb 26, 2012
@tacoman667
Copy link
Author

Yes. That fixed it. Now I just get an error on installing zombie but I was able to install express and socket.io now. Thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants