nodejs / node-gyp

Node.js native addon build tool
MIT License
9.89k stars 1.79k forks source link

dnode node-gyp failing Windows #103

Closed ryanogle closed 12 years ago

ryanogle commented 12 years ago

I am trying to install dnode on 64 bit Windows 7. It keeps failing at node-gyp with the following error. It says that it is Python3, but I have Python 2.7 installed. I've tried earlier versions, but that doesn't seem to work either. Is there a specific version I should be using? Or something else I can try? Any help is greatly appreciated!

npm install
npm http GET https://registry.npmjs.org/dnode
npm http 304 https://registry.npmjs.org/dnode
npm http GET https://registry.npmjs.org/dnode-protocol
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/bindings

> weak@0.2.1 install C:\project\node_modules\dnode\node_modules\weak
> node-gyp rebuild

C:\prject\node_modules\dnode\node_modules\weak>node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js
" rebuild
gyp ERR! rebuild error Error: Python executable "C:\Python27\python.exe" is Pyth
on 3, which is not supported.
gyp ERR! rebuild error You can set the PYTHON env variable to point to a Python
2 interpreter.
gyp ERR! rebuild error     at failPython3 (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\configure.js:90:14)
gyp ERR! rebuild error     at C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:79:9
gyp ERR! rebuild error     at ChildProcess.exithandler (child_process.js:534:7)
gyp ERR! rebuild error     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! rebuild error     at maybeClose (child_process.js:634:16)
gyp ERR! rebuild error     at Process._handle.onexit (child_process.js:676:5)
gyp ERR! not ok
npm ERR! weak@0.2.1 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the weak@0.2.1 install script.
npm ERR! This is most likely a problem with the weak 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 weak
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\project
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! code ELIFECYCLE
npm ERR! message weak@0.2.1 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\project\npm-debug.log
npm ERR! not ok code 0
TooTallNate commented 12 years ago

Can you do npm install --verbose and show me the output?

ryanogle commented 12 years ago

Thanks for looking at this Nate. Here is the verbose output:

c:\project1>npm install --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
npm verb cli   'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli
.js',
npm verb cli   'install',
npm verb cli   '--verbose' ]
npm info using npm@1.1.33
npm info using node@v0.8.1
npm verb node symlink C:\Program Files (x86)\nodejs\\node.exe
npm verb config file C:\Users\ryan\.npmrc
npm verb config file C:\Program Files (x86)\nodejs\etc\npmrc
npm verb config file C:\Program Files (x86)\nodejs\node_modules\npm\npmrc
npm verb read json c:\project1\package.json
npm verb readDependencies using package.json deps
npm verb install where, deps [ 'c:\\project1',
npm verb install   [ 'express',
npm verb install     'ejs',
npm verb install     'mongodb',
npm verb install     'mongoose',
npm verb install     'connect-mongodb',
npm verb install     'underscore',
npm verb install     'socket.io',
npm verb install     'jake',
npm verb install     'bundle-up',
npm verb install     'redis',
npm verb install     'connect-redis',
npm verb install     'dnode' ] ]
npm verb from cache c:\project1\package.json
npm info preinstall project1@0.0.1
npm verb read json c:\project1\node_modules\bundle-up\package.json
npm verb read json c:\project1\node_modules\connect-mongodb\package.json
npm verb read json c:\project1\node_modules\connect-redis\package.json
npm verb read json c:\project1\node_modules\ejs\package.json
npm verb read json c:\project1\node_modules\express\package.json
npm verb read json c:\project1\node_modules\jake\package.json
npm verb read json c:\project1\node_modules\mongodb\package.json
npm verb read json c:\project1\node_modules\mongoose\package.json
npm verb read json c:\project1\node_modules\redis\package.json
npm verb read json c:\project1\node_modules\socket.io\package.json
npm verb read json c:\project1\node_modules\underscore\package.json
npm verb from cache c:\project1\package.json
npm verb readDependencies using package.json deps
npm verb read json c:\project1\node_modules\.bin\package.json
npm verb from cache c:\project1\node_modules\bundle-up\package.json
npm verb from cache c:\project1\node_modules\connect-mongodb\package.json
npm verb from cache c:\project1\node_modules\connect-redis\package.json
npm verb from cache c:\project1\node_modules\ejs\package.json
npm verb from cache c:\project1\node_modules\express\package.json
npm verb from cache c:\project1\node_modules\jake\package.json
npm verb from cache c:\project1\node_modules\mongodb\package.json
npm verb from cache c:\project1\node_modules\mongoose\package.json
npm verb from cache c:\project1\node_modules\redis\package.json
npm verb from cache c:\project1\node_modules\socket.io\package.json
npm verb from cache c:\project1\node_modules\underscore\package.json
npm verb already installed skipping express@>= 1.2.0 c:\project1
npm verb already installed skipping ejs@>=0.0.0 c:\project1
npm verb already installed skipping mongodb@>=0.0.0 c:\project1
npm verb already installed skipping mongoose@>=2.5.10 c:\project1
npm verb already installed skipping connect-mongodb@x.x.x c:\project1
npm verb already installed skipping underscore@1.x.x c:\project1
npm verb already installed skipping socket.io@0.9.x c:\project1
npm verb already installed skipping jake@0.x.x c:\project1
npm verb already installed skipping bundle-up@>=0.3.x c:\project1
npm verb already installed skipping redis@>0.x.x c:\project1
npm verb already installed skipping connect-redis@>0.x.x c:\project1
npm verb cache add [ 'dnode@>0.0.0', null ]
npm verb parsed url { pathname: 'dnode@%3E0.0.0',
npm verb parsed url   path: 'dnode@%3E0.0.0',
npm verb parsed url   href: 'dnode@%3E0.0.0' }
npm verb parsed url { pathname: '%3E0.0.0', path: '%3E0.0.0', href: '%3E0.0.0' }

npm verb addNamed [ 'dnode', '>0.0.0' ]
npm verb addNamed [ null, '>0.0.0' ]
npm verb lock dnode@>0.0.0 C:\Users\ryan\AppData\Roaming\npm-cache\6de012a43a6de
1bdabb5298a82a65fa4a6826c6d-dnode-0-0-0.lock
npm verb url raw dnode
npm verb url resolving [ 'https://registry.npmjs.org/', './dnode' ]
npm verb url resolved https://registry.npmjs.org/dnode
npm info retry registry request attempt 1 at 16:55:14
npm verb etag "7J3ZURUGXAZYDBB44HG42B13X"
npm http GET https://registry.npmjs.org/dnode
npm http 304 https://registry.npmjs.org/dnode
npm verb etag dnode from cache
npm verb addNamed [ 'dnode', '1.0.0' ]
npm verb addNamed [ '1.0.0', '1.0.0' ]
npm verb lock dnode@1.0.0 C:\Users\ryan\AppData\Roaming\npm-cache\75f85d2b2ed679
f2dec80e1f9f33410a2e8c9c7f-dnode-1-0-0.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\dnode\1.0.0\package\p
ackage.json
npm info install dnode@1.0.0 into c:\project1
npm info installOne dnode@1.0.0
npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\dnode\1.0.0\package\
package.json
npm info c:\project1\node_modules\dnode unbuild
npm verb read json c:\project1\node_modules\dnode\package.json
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\dnode\1.0.0\package.
tgz
npm verb read json c:\project1\node_modules\dnode\package.json
npm info preinstall dnode@1.0.0
npm verb from cache c:\project1\node_modules\dnode\package.json
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\package.json
npm verb readDependencies using package.json deps
npm verb cache add [ 'dnode-protocol@~0.2.2', null ]
npm verb parsed url { pathname: 'dnode-protocol@~0.2.2',
npm verb parsed url   path: 'dnode-protocol@~0.2.2',
npm verb parsed url   href: 'dnode-protocol@~0.2.2' }
npm verb parsed url { pathname: '~0.2.2', path: '~0.2.2', href: '~0.2.2' }
npm verb addNamed [ 'dnode-protocol', '~0.2.2' ]
npm verb addNamed [ null, '>=0.2.2- <0.3.0-' ]
npm verb lock dnode-protocol@~0.2.2 C:\Users\ryan\AppData\Roaming\npm-cache\6d5b
2b1744a4de71f6e75ebc1a6ddd8097e2b73e-dnode-protocol-0-2-2.lock
npm verb cache add [ 'jsonify@~0.0.0', null ]
npm verb parsed url { pathname: 'jsonify@~0.0.0',
npm verb parsed url   path: 'jsonify@~0.0.0',
npm verb parsed url   href: 'jsonify@~0.0.0' }
npm verb parsed url { pathname: '~0.0.0', path: '~0.0.0', href: '~0.0.0' }
npm verb addNamed [ 'jsonify', '~0.0.0' ]
npm verb addNamed [ null, '>=0.0.0- <0.1.0-' ]
npm verb lock jsonify@~0.0.0 C:\Users\ryan\AppData\Roaming\npm-cache\6f82df5cef8
1db7624b6933fc160e0b5e972eebf-jsonify-0-0-0.lock
npm verb cache add [ 'weak@~0.2.1', null ]
npm verb parsed url { pathname: 'weak@~0.2.1',
npm verb parsed url   path: 'weak@~0.2.1',
npm verb parsed url   href: 'weak@~0.2.1' }
npm verb parsed url { pathname: '~0.2.1', path: '~0.2.1', href: '~0.2.1' }
npm verb addNamed [ 'weak', '~0.2.1' ]
npm verb addNamed [ null, '>=0.2.1- <0.3.0-' ]
npm verb lock weak@~0.2.1 C:\Users\ryan\AppData\Roaming\npm-cache\7b886e6ea7cced
6dd27e414bd92fcdeda9bbd1f6-weak-0-2-1.lock
npm verb url raw dnode-protocol
npm verb url resolving [ 'https://registry.npmjs.org/', './dnode-protocol' ]
npm verb url resolved https://registry.npmjs.org/dnode-protocol
npm info retry registry request attempt 1 at 16:55:15
npm verb etag "5OF01BM1UT4XIU21JXG8DACJE"
npm http GET https://registry.npmjs.org/dnode-protocol
npm verb url raw jsonify
npm verb url resolving [ 'https://registry.npmjs.org/', './jsonify' ]
npm verb url resolved https://registry.npmjs.org/jsonify
npm info retry registry request attempt 1 at 16:55:15
npm verb etag "DDDV58JFCMX0CW7I6HDZW2MAU"
npm http GET https://registry.npmjs.org/jsonify
npm verb url raw weak
npm verb url resolving [ 'https://registry.npmjs.org/', './weak' ]
npm verb url resolved https://registry.npmjs.org/weak
npm info retry registry request attempt 1 at 16:55:15
npm verb etag "1IBZJ57PA3J8ZU23JJ0TQ67A0"
npm http GET https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/dnode-protocol
npm verb etag dnode-protocol from cache
npm verb addNamed [ 'dnode-protocol', '0.2.2' ]
npm verb addNamed [ '0.2.2', '0.2.2' ]
npm verb lock dnode-protocol@0.2.2 C:\Users\ryan\AppData\Roaming\npm-cache\887a6
117dea830d5a34b2bc705c1917882d4d911-dnode-protocol-0-2-2.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\dnode-protocol\0.2.2\
package\package.json
npm http 304 https://registry.npmjs.org/jsonify
npm verb etag jsonify from cache
npm verb addNamed [ 'jsonify', '0.0.0' ]
npm verb addNamed [ '0.0.0', '0.0.0' ]
npm verb lock jsonify@0.0.0 C:\Users\ryan\AppData\Roaming\npm-cache\e3f559e0c2e3
0f66484c6533e76f3566d23aaf2d-jsonify-0-0-0.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\jsonify\0.0.0\package
\package.json
npm http 304 https://registry.npmjs.org/weak
npm verb etag weak from cache
npm verb addNamed [ 'weak', '0.2.1' ]
npm verb addNamed [ '0.2.1', '0.2.1' ]
npm verb lock weak@0.2.1 C:\Users\ryan\AppData\Roaming\npm-cache\eba97922c7558e5
4fff0a71f9abc55c4669af6cf-weak-0-2-1.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\weak\0.2.1\package\pa
ckage.json
npm info install dnode-protocol@0.2.2 into c:\project1\node_modules\dnode
npm info install jsonify@0.0.0 into c:\project1\node_modules\dnode
npm info install weak@0.2.1 into c:\project1\node_modules\dnode
npm info installOne dnode-protocol@0.2.2
npm info installOne jsonify@0.0.0
npm info installOne weak@0.2.1
npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\dnode-protocol\0.2.2
\package\package.json
npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\jsonify\0.0.0\packag
e\package.json
npm info c:\project1\node_modules\dnode\node_modules\dnode-protocol unbuild
npm verb read json c:\project1\node_modules\dnode\node_modules\dnode-protocol\packa
ge.json
npm info c:\project1\node_modules\dnode\node_modules\jsonify unbuild
npm verb read json c:\project1\node_modules\dnode\node_modules\jsonify\package.json

npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\weak\0.2.1\package\p
ackage.json
npm info c:\project1\node_modules\dnode\node_modules\weak unbuild
npm verb read json c:\project1\node_modules\dnode\node_modules\weak\package.json
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\dnode-protocol\0.2.2
\package.tgz
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\jsonify\0.0.0\packag
e.tgz
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\weak\0.2.1\package.t
gz
npm verb read json c:\project1\node_modules\dnode\node_modules\jsonify\package.json

npm info preinstall jsonify@0.0.0
npm verb from cache c:\project1\node_modules\dnode\node_modules\jsonify\package.jso
n
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\node_modules\jsonify\package.jso
n
npm verb readDependencies using package.json deps
npm verb about to build c:\project1\node_modules\dnode\node_modules\jsonify
npm info build c:\project1\node_modules\dnode\node_modules\jsonify
npm verb from cache c:\project1\node_modules\dnode\node_modules\jsonify\package.jso
n
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   'c:\\project1\\node_modules\\dnode\\node_modules' ]
npm info linkStuff jsonify@0.0.0
npm verb linkBins jsonify@0.0.0
npm verb linkMans jsonify@0.0.0
npm verb rebuildBundles jsonify@0.0.0
npm info install jsonify@0.0.0
npm info postinstall jsonify@0.0.0
npm verb read json c:\project1\node_modules\dnode\node_modules\dnode-protocol\packa
ge.json
npm info preinstall dnode-protocol@0.2.2
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\pack
age.json
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\pack
age.json
npm verb readDependencies using package.json deps
npm verb read json c:\project1\node_modules\dnode\node_modules\weak\package.json
npm info preinstall weak@0.2.1
npm verb cache add [ 'traverse@~0.6.3', null ]
npm verb parsed url { pathname: 'traverse@~0.6.3',
npm verb parsed url   path: 'traverse@~0.6.3',
npm verb parsed url   href: 'traverse@~0.6.3' }
npm verb parsed url { pathname: '~0.6.3', path: '~0.6.3', href: '~0.6.3' }
npm verb addNamed [ 'traverse', '~0.6.3' ]
npm verb addNamed [ null, '>=0.6.3- <0.7.0-' ]
npm verb lock traverse@~0.6.3 C:\Users\ryan\AppData\Roaming\npm-cache\bc31b3f720
3deb8e182b946c3dbc29a6dad0f7a5-traverse-0-6-3.lock
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\package.json
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\package.json
npm verb readDependencies using package.json deps
npm verb url raw traverse
npm verb url resolving [ 'https://registry.npmjs.org/', './traverse' ]
npm verb url resolved https://registry.npmjs.org/traverse
npm info retry registry request attempt 1 at 16:55:16
npm verb etag "DBQA24FXPV89BLIA53W00VBAP"
npm http GET https://registry.npmjs.org/traverse
npm verb cache add [ 'bindings@*', null ]
npm verb parsed url { pathname: 'bindings@*',
npm verb parsed url   path: 'bindings@*',
npm verb parsed url   href: 'bindings@*' }
npm verb parsed url { pathname: '*', path: '*', href: '*' }
npm verb addNamed [ 'bindings', '*' ]
npm verb addNamed [ null, '' ]
npm verb lock bindings@* C:\Users\ryan\AppData\Roaming\npm-cache\a3858fc24dae4ca
1c31f3a21dcc550363e6a270f-bindings-.lock
npm verb url raw bindings
npm verb url resolving [ 'https://registry.npmjs.org/', './bindings' ]
npm verb url resolved https://registry.npmjs.org/bindings
npm info retry registry request attempt 1 at 16:55:16
npm verb etag "8DBO1S8DJR8DNAWMBNOBI9W7I"
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/traverse
npm verb etag traverse from cache
npm verb addNamed [ 'traverse', '0.6.3' ]
npm verb addNamed [ '0.6.3', '0.6.3' ]
npm verb lock traverse@0.6.3 C:\Users\ryan\AppData\Roaming\npm-cache\5377bf10020
2eb35b03cb7608236d12af63f876b-traverse-0-6-3.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\traverse\0.6.3\packag
e\package.json
npm info install traverse@0.6.3 into c:\project1\node_modules\dnode\node_modules\dn
ode-protocol
npm info installOne traverse@0.6.3
npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\traverse\0.6.3\packa
ge\package.json
npm info c:\project1\node_modules\dnode\node_modules\dnode-protocol\node_modules\tr
averse unbuild
npm verb read json c:\project1\node_modules\dnode\node_modules\dnode-protocol\node_
modules\traverse\package.json
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\traverse\0.6.3\packa
ge.tgz
npm http 304 https://registry.npmjs.org/bindings
npm verb etag bindings from cache
npm verb addNamed [ 'bindings', '1.0.0' ]
npm verb addNamed [ '1.0.0', '1.0.0' ]
npm verb lock bindings@1.0.0 C:\Users\ryan\AppData\Roaming\npm-cache\f01e54541c8
eb2a241ed6dc359a7cb142cbcc572-bindings-1-0-0.lock
npm verb read json C:\Users\ryan\AppData\Roaming\npm-cache\bindings\1.0.0\packag
e\package.json
npm info install bindings@1.0.0 into c:\project1\node_modules\dnode\node_modules\we
ak
npm info installOne bindings@1.0.0
npm verb from cache C:\Users\ryan\AppData\Roaming\npm-cache\bindings\1.0.0\packa
ge\package.json
npm info c:\project1\node_modules\dnode\node_modules\weak\node_modules\bindings unb
uild
npm verb read json c:\project1\node_modules\dnode\node_modules\weak\node_modules\bi
ndings\package.json
npm verb tar unpack C:\Users\ryan\AppData\Roaming\npm-cache\bindings\1.0.0\packa
ge.tgz
npm verb read json c:\project1\node_modules\dnode\node_modules\weak\node_modules\bi
ndings\package.json
npm info preinstall bindings@1.0.0
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\node_modules\b
indings\package.json
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\node_modules\b
indings\package.json
npm verb readDependencies using package.json deps
npm verb about to build c:\project1\node_modules\dnode\node_modules\weak\node_modul
es\bindings
npm info build c:\project1\node_modules\dnode\node_modules\weak\node_modules\bindin
gs
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\node_modules\b
indings\package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   'c:\\project1\\node_modules\\dnode\\node_modules\\weak\\node_m
odules' ]
npm info linkStuff bindings@1.0.0
npm verb linkBins bindings@1.0.0
npm verb linkMans bindings@1.0.0
npm verb rebuildBundles bindings@1.0.0
npm info install bindings@1.0.0
npm info postinstall bindings@1.0.0
npm verb about to build c:\project1\node_modules\dnode\node_modules\weak
npm info build c:\project1\node_modules\dnode\node_modules\weak
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   'c:\\project1\\node_modules\\dnode\\node_modules' ]
npm info linkStuff weak@0.2.1
npm verb linkBins weak@0.2.1
npm verb linkMans weak@0.2.1
npm verb rebuildBundles weak@0.2.1
npm verb rebuildBundles [ 'bindings' ]
npm info install weak@0.2.1
npm verb unsafe-perm in lifecycle true

> weak@0.2.1 install c:\project1\node_modules\dnode\node_modules\weak
> node-gyp rebuild

c:\project1\node_modules\dnode\node_modules\weak>node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js
" rebuild
npm verb read json c:\project1\node_modules\dnode\node_modules\dnode-protocol\node_
modules\traverse\package.json
npm info preinstall traverse@0.6.3
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\node
_modules\traverse\package.json
npm verb readDependencies using package.json deps
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\node
_modules\traverse\package.json
npm verb readDependencies using package.json deps
npm verb about to build c:\project1\node_modules\dnode\node_modules\dnode-protocol\
node_modules\traverse
npm info build c:\project1\node_modules\dnode\node_modules\dnode-protocol\node_modu
les\traverse
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\node
_modules\traverse\package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   'c:\\project1\\node_modules\\dnode\\node_modules\\dnode-protoc
ol\\node_modules' ]
npm info linkStuff traverse@0.6.3
npm verb linkBins traverse@0.6.3
npm verb link bins [ {},
npm verb link bins   'c:\\project1\\node_modules\\dnode\\node_modules\\dnode-protoc
ol\\node_modules\\.bin',
npm verb link bins   false ]
npm verb linkMans traverse@0.6.3
npm verb rebuildBundles traverse@0.6.3
npm info install traverse@0.6.3
npm info postinstall traverse@0.6.3
npm verb about to build c:\project1\node_modules\dnode\node_modules\dnode-protocol
npm info build c:\project1\node_modules\dnode\node_modules\dnode-protocol
npm verb from cache c:\project1\node_modules\dnode\node_modules\dnode-protocol\pack
age.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   'c:\\project1\\node_modules\\dnode\\node_modules' ]
npm info linkStuff dnode-protocol@0.2.2
npm verb linkBins dnode-protocol@0.2.2
npm verb linkMans dnode-protocol@0.2.2
npm verb rebuildBundles dnode-protocol@0.2.2
npm verb rebuildBundles [ 'traverse' ]
npm info install dnode-protocol@0.2.2
npm info postinstall dnode-protocol@0.2.2
gyp info it worked if it ends with ok
gyp info using node-gyp@0.5.2
gyp info using node@0.8.1
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "c:\Python25\python.exe" in
 the PATH
gyp verb `which` succeeded for `c:\Python25\python.exe` c:\Python25\python.exe
gyp ERR! rebuild error Error: Python executable "c:\Python25\python.exe" is Pyth
on 3, which is not supported.
gyp ERR! rebuild error You can set the PYTHON env variable to point to a Python
2 interpreter.
gyp ERR! rebuild error     at failPython3 (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\configure.js:90:14)
gyp ERR! rebuild error     at C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:79:9
gyp ERR! rebuild error     at ChildProcess.exithandler (child_process.js:534:7)
gyp ERR! rebuild error     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! rebuild error     at maybeClose (child_process.js:634:16)
gyp ERR! rebuild error     at Process._handle.onexit (child_process.js:676:5)
gyp ERR! not ok
npm info weak@0.2.1 Failed to exec install script
npm info c:\project1\node_modules\dnode\node_modules\weak unbuild
npm verb from cache c:\project1\node_modules\dnode\node_modules\weak\package.json
npm info preuninstall weak@0.2.1
npm info uninstall weak@0.2.1
npm verb false,c:\project1\node_modules,c:\project1\node_modules\dnode\node_modules un
build weak@0.2.1
npm info postuninstall weak@0.2.1
npm verb about to build c:\project1\node_modules\dnode
npm info c:\project1\node_modules\dnode unbuild
npm verb from cache c:\project1\node_modules\dnode\package.json
npm info preuninstall dnode@1.0.0
npm info uninstall dnode@1.0.0
npm verb true,c:\project1\node_modules,c:\project1\node_modules unbuild dnode@1.0.0
npm info postuninstall dnode@1.0.0
npm ERR! weak@0.2.1 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the weak@0.2.1 install script.
npm ERR! This is most likely a problem with the weak 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 weak
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--verbose"
npm ERR! cwd c:\project1
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! code ELIFECYCLE
npm ERR! message weak@0.2.1 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     c:\project1\npm-debug.log
npm ERR! not ok code 0

c:\project1>
TooTallNate commented 12 years ago

Hmm, I think you need to update npm's internal copy of node-gyp. Do this:

$ npm explore -g npm npm install node-gyp

And then try running npm install again.

TooTallNate commented 12 years ago

Actually that probably won't work on Windows. Try this (needs to be done from a command prompt with Administrator privileges):

$ cd "C:\Program Files (x86)\nodejs\node_modules\npm"
$ npm install node-gyp
TooTallNate commented 12 years ago

Also, what does python --version output for you?

ryanogle commented 12 years ago

Well, that absolutely seems to have fixed it. Thanks so much for the awesome support Nate. Although, I can't say I understand why it fixed it. What does the new version have that the old didn't? And I just installed node on this machine, shouldn't it have the newest NPM/dependencies?

Console for updating node-gyp:

C:\Program Files (x86)\nodejs\node_modules\npm>npm install node-gyp
npm http GET https://registry.npmjs.org/node-gyp
npm http 304 https://registry.npmjs.org/node-gyp
npm WARN prefer global node-gyp@0.5.2 should be installed with -g
node-gyp@0.5.8 node_modules\node-gyp

Python Version:

C:\Python25>python --version
Python 2.5

NPM install:

C:\Project1>npm install
npm http GET https://registry.npmjs.org/dnode
npm http 304 https://registry.npmjs.org/dnode
npm http GET https://registry.npmjs.org/dnode-protocol
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/bindings

> weak@0.2.1 install C:\Project1\node_modules\dnode\node_modules\weak
> node-gyp rebuild

C:\Project1\node_modules\dnode\node_modules\weak>node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js
" rebuild
  weakref.cc
c:\users\ryan\.node-gyp\0.8.1\src\node_object_wrap.h(57): warning C4251: 'node:
:ObjectWrap::handle_' : class 'v8::Persistent<T>' needs to have dll-interface t
o be used by clients of class 'node::ObjectWrap' [C:\Project1\node_modules\dnode\n
ode_modules\weak\build\weakref.vcxproj]
          with
          [
              T=v8::Object
          ]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(99
0,5): warning MSB8012: TargetPath(C:\Project1\node_modules\dnode\node_modules\weak
\build\Release\weakref.dll) does not match the Linker's OutputFile property val
ue (C:\Project1\node_modules\dnode\node_modules\weak\build\Release\weakref.node).
This may cause your project to build incorrectly. To correct this, please make
sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the v
alue specified in %(Link.OutputFile). [C:\Project1\node_modules\dnode\node_modules
\weak\build\weakref.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(99
1,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile p
roperty value (.node). This may cause your project to build incorrectly. To cor
rect this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) prop
erty values match the value specified in %(Link.OutputFile). [C:\Project1\node_mod
ules\dnode\node_modules\weak\build\weakref.vcxproj]
     Creating library C:\Project1\node_modules\dnode\node_modules\weak\build\Relea
  se\weakref.lib and object C:\Project1\node_modules\dnode\node_modules\weak\build
  \Release\weakref.exp
  Generating code
  Finished generating code
  weakref.vcxproj -> C:\Project1\node_modules\dnode\node_modules\weak\build\Releas
  e\weakref.dll
dnode@1.0.0 node_modules\dnode
├── jsonify@0.0.0
├── dnode-protocol@0.2.2 (traverse@0.6.3)
└── weak@0.2.1 (bindings@1.0.0)

C:\Project1>
TooTallNate commented 12 years ago

Excellent! Glad you got it working. The difference was that node-gyp@0.5.2 had a bug where it wouldn't parse the Python version number properly, but that was fixed in 036a730f4a3a95e65d8f390f7f5c4f0d3321e422 (0.5.3). The reason that npm doesn't come with the newest version of node-gyp is because npm has to update its own copy of node-gyp manually, and that hadn't been done yet.

ryanogle commented 12 years ago

You da man Nate!

davidmorabito commented 9 years ago

I'm using Ubuntu Trusty (14.04), and this worked for me:

  1. Install Python 2.6 if you don't have already or you have a newer version. To do this, add these to your source.list
deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main 
deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main 

Update software list:

$ sudo apt-get update

Install Python 2.6:

sudo apt-get install python2.6

Set this older version as primary:

$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20

Make sure Python 2.6 is the default version, if not, try using:

sudo update-alternatives --config python

And pick the Python 2.6.

  1. Install node-gyp:
$ sudo apt-get install node-gyp

Regards.