arturadib / node-qt

C++ Qt bindings for Node.js
http://documentup.com/arturadib/node-qt
Other
1.62k stars 172 forks source link

npm fails to install on windows xp #6

Closed dnissley closed 1 year ago

dnissley commented 12 years ago

I don't have another computer to test this on, but when I "npm install node-qt" I get:

C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex>npm install node-qt
npm http GET https://registry.npmjs.org/node-qt
npm http 304 https://registry.npmjs.org/node-qt
npm http GET https://registry.npmjs.org/node-qt/-/node-qt-0.0.2.tgz
npm http 200 https://registry.npmjs.org/node-qt/-/node-qt-0.0.2.tgz
npm http GET https://registry.npmjs.org/shelljs/0.0.5pre4
npm http 200 https://registry.npmjs.org/shelljs/0.0.5pre4
npm http GET https://registry.npmjs.org/shelljs/-/shelljs-0.0.5pre4.tgz
npm http 200 https://registry.npmjs.org/shelljs/-/shelljs-0.0.5pre4.tgz

> node-qt@0.0.2 install C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex\node_modules\node-qt
> node-gyp rebuild

C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex\node_modules\node-qt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\n
ode-gyp\bin\node-gyp.js" rebuild
info it worked if it ends with ok
info downloading: http://nodejs.org/dist/v0.6.15/node-v0.6.15.tar.gz
info downloading: http://nodejs.org/dist/v0.6.15/node.lib
spawn C:\Python27\python.exe [ 'C:\\Documents and Settings\\dylan\\.node-gyp\\0.6.15\\tools\\gyp_addon',
  'binding.gyp',
  '-IC:\\Documents and Settings\\dylan\\My Documents\\Dropbox\\Code\\QT-Ex\\node_modules\\node-qt\\build\\config.gypi',
  '-f',
  'msvs',
  '-G',
  'msvs_version=2010' ]
spawn msbuild [ 'build/binding.sln',
  '/clp:Verbosity=minimal',
  '/nologo',
  '/p:Configuration=Release;Platform=Win32' ]
build/binding.sln(1): Solution file error MSB5014: File format version is not recognized.  MSBuild can only read solution files between versions 7.0 and 9.0, inclusive.
ERR! Error: `msbuild` failed with exit code: 1
    at Array.0 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:176:25)
    at EventEmitter._tickCallback (node.js:192:40)
ERR! not ok
npm ERR! error rolling back node-qt@0.0.2 Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex\node_modules\node-qt\deps\qt-4.8.0\win3
2\ia32\include\QtCore'

npm ERR! node-qt@0.0.2 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-qt@0.0.2 install script.
npm ERR! This is most likely a problem with the node-qt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-qt
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-qt"
npm ERR! cwd C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message node-qt@0.0.2 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Documents and Settings\dylan\My Documents\Dropbox\Code\QT-Ex\npm-debug.log
npm not ok
arturadib commented 12 years ago

@TooTallNate I'm not familiar with build version issues on Windows/MSVS - any ideas?

TooTallNate commented 12 years ago

@dnissley Do you have MSVS 2010 installed or some other version?

dnissley commented 12 years ago

I have 2008 and 2010 installed, but I did not have VC++ installed on either (because I don't do any C++ on windows). I figured that was my issue so I installed VC++ 2010, restarted and tried again, but got the exact same error.

Not sure if this will be helpful, but here are the contents of the npm-debug.log: https://gist.github.com/2359224