npm install jsdom fails #2061

Closed
bojanbjelic opened this Issue Jan 19, 2012 · 5 comments

Projects

None yet

6 participants

@bojanbjelic

C:\Program Files (x86)\nodejs>npm install jsdom
npm http GET https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/htmlparser
npm http 304 https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/htmlparser

contextify@0.0.7 preinstall C:\Program Files (x86)\nodejs\node_modules\jsdom\node_modules\contextify
node-waf clean || (exit 0); node-waf configure build

node-waf was unexpected at this time.
npm ERR! error installing contextify@0.0.7
npm ERR! error installing jsdom@0.2.10
npm ERR! Error: ENOENT, no such file or directory 'C:\Program Files (x86)\nodejs\node_modules\jsdom\node_modules___html
parser.npm\package\runtests.min.js'
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 Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin
\npm-cli.js" "install" "jsdom"
npm ERR! cwd C:\Program Files (x86)\nodejs
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path C:\Program Files (x86)\nodejs\node_modules\jsdom\node_modules___htmlparser.npm\package\runtests.min.js
npm ERR! fstream_path C:\Program Files (x86)\nodejs\node_modules\jsdom\node_modules___htmlparser.npm\package\runtests.m
in.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory 'C:\Program Files (x86)\nodejs\node_modules\jsdom\node_modules___htm
lparser.npm\package\runtests.min.js'
npm ERR! fstream_stack Object.oncomplete (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\fstream\lib\writer
.js:204:26)
npm ERR! error rolling back jsdom@0.2.10 Error: UNKNOWN, unknown error 'C:\Program Files (x86)\nodejs\node_modules\jsdom
\node_modules___request.npm\package\tests'
npm ERR! contextify@0.0.7 preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! cmd "/c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the contextify@0.0.7 preinstall script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin
\npm-cli.js" "install" "jsdom"
npm ERR! cwd C:\Program Files (x86)\nodejs
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! code ELIFECYCLE
npm ERR! message contextify@0.0.7 preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! message cmd "/c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files (x86)\nodejs\npm-debug.log
npm not ok

C:\Program Files (x86)\nodejs>

@isaacs
Member
isaacs commented Jan 19, 2012

This is a jsdom bug. It should list contextify as an optionalDependency, or not use it at all. node-waf will never work on windows.

@isaacs isaacs closed this Jan 19, 2012
@ccidral
ccidral commented Jan 19, 2012

Is there anything we can do to workaround it? I'm trying to install zombie with npm on windows and am stuck on this same error.

@soroushhakami

Wondering the same thing as ccidral. Trying to install jquery with npm on windows fails for the same reason. See thread http://stackoverflow.com/questions/9210887/npm-install-jasmine-jquery-fails

@pierreau

Issac, can we reopen this issue? there are tons of Windows users who would like to be able to enjoy tools that require NPM installs.

@mmalecki
Member

How'd you like to fix it, @pierreau?

There's node-gyp coming. From what I've heard it works on Windows. List of compatible modules/patches.

/cc @TooTallNate

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