Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Installation error on Windows 7 #122

Closed
tian-wni opened this issue Sep 3, 2014 · 18 comments
Closed

Installation error on Windows 7 #122

tian-wni opened this issue Sep 3, 2014 · 18 comments

Comments

@tian-wni
Copy link

tian-wni commented Sep 3, 2014

Hi,

@tian-wni
Copy link
Author

tian-wni commented Sep 3, 2014

Hi,
I've installed first node.js and tried to install topojson,but i am getting error.
npm install -g topojson

error message:

gyp ERR! configure error
gyp ERR! stack Error: Command failed: ImportError: No module named site
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:648:15)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:756:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:823:)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modues\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\tian\AppData\Roaming\npm\node_modules\topojson\node_modules\d3\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! contextify@0.1.8 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.8 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
js\node_modules\npm\bin\npm-cli.js" "install" "-g" "topojson"
npm ERR! cwd C:\windows\system32
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE

I'm really interested in trying TopoJSON, but I can't manage to install it.
Please help me . Thanks in advance.

@blowsie
Copy link

blowsie commented Oct 7, 2014

Could you run
npm install contextify -verbose

This might offer some more detail.

@blowsie
Copy link

blowsie commented Oct 7, 2014

Please see if this works for you.
#129

@sparqueur
Copy link

I have nearly same error. Nothing to do... Tried with VS2010. Cleaned EVERYTHING. Tried with VS2013. Same error...

If you have any idea, would be great.

C:\Developpement\workspace\needubro>npm install contextify -verbose -msvs_version=2013
npm info it worked if it ends with ok
npm verb cli [ 'C:\Developpement\nodejs\node.exe',
npm verb cli 'C:\Developpement\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'install',
npm verb cli 'contextify',
npm verb cli '-verbose',
npm verb cli '-msvs_version=2013' ]
npm info using npm@1.4.28
npm info using node@v0.10.33
npm verb node symlink C:\Developpement\nodejs\node.exe
npm WARN package.json karma-chrome-launcher@0.1.5 No README data
npm WARN package.json karma-coffee-preprocessor@0.2.1 No README data
npm WARN package.json karma-phantomjs-launcher@0.1.4 No README data
npm verb readDependencies using package.json deps
npm verb cache add [ 'contextify', null ]
npm verb cache add name=undefined spec="contextify" args=["contextify",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'contextify',
npm verb parsed url path: 'contextify',
npm verb parsed url href: 'contextify' }
npm verb lock contextify C:\Users\Dev\AppData\Roaming\npm-cache\e90e8b6a-contextify.lock
npm verb addNamed [ 'contextify', '' ]
npm verb addNamed [ null, '' ]
npm verb lock contextify@ C:\Users\Dev\AppData\Roaming\npm-cache\902bbeb2-contextify.lock
npm verb request where is /contextify
npm verb request registry https://registry.npmjs.org/
npm verb request id f43c09fea1d52c74
npm verb url raw /contextify
npm verb url resolving [ 'https://registry.npmjs.org/', './contextify' ]
npm verb url resolved https://registry.npmjs.org/contextify
npm verb request where is https://registry.npmjs.org/contextify
npm info trying registry request attempt 1 at 22:34:41
npm verb etag "ETQYLMUXNKSZNS8XTIZLEDQGJ"
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm verb etag https://registry.npmjs.org/contextify from cache
npm verb addNamed [ 'contextify', '0.1.9' ]
npm verb addNamed [ '0.1.9', '0.1.9' ]
npm verb lock contextify@0.1.9 C:\Users\Dev\AppData\Roaming\npm-cache\ddae2453-contextify-0-1-9.lock
npm info install contextify@0.1.9 into C:\Developpement\workspace\needubro
npm info installOne contextify@0.1.9
npm verb node_modules\contextify unbuild
npm verb tar unpack C:\Users\Dev\AppData\Roaming\npm-cache\contextify\0.1.9\package.tgz
npm verb lock tar://C:\Developpement\workspace\needubro\node_modules\contextify C:\Users\Dev\AppData\Roaming\npm-cache\d1e287db-ne
edubro-node-modules-contextify.lock
npm verb lock tar://C:\Users\Dev\AppData\Roaming\npm-cache\contextify\0.1.9\package.tgz C:\Users\Dev\AppData\Roaming\npm-cache\c70
97dcc-che-contextify-0-1-9-package-tgz.lock
npm info preinstall contextify@0.1.9
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'bindings@
', null ]
npm verb cache add name=undefined spec="bindings@" args=["bindings@",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'bindings@',
npm verb parsed url path: 'bindings@
',
npm verb parsed url href: 'bindings@' }
npm verb cache add [ 'nan@~1.3.0', null ]
npm verb cache add name=undefined spec="nan@~1.3.0" args=["nan@~1.3.0",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'nan@~1.3.0',
npm verb parsed url path: 'nan@~1.3.0',
npm verb parsed url href: 'nan@~1.3.0' }
npm verb cache add name="bindings" spec="
" args=["bindings",""]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '
',
npm verb parsed url path: '',
npm verb parsed url href: '
' }
npm verb addNamed [ 'bindings', '' ]
npm verb addNamed [ null, '
' ]
npm verb lock bindings@* C:\Users\Dev\AppData\Roaming\npm-cache\a3858fc2-bindings.lock
npm verb cache add name="nan" spec="~1.3.0" args=["nan","~1.3.0"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '~1.3.0',
npm verb parsed url path: '~1.3.0',
npm verb parsed url href: '~1.3.0' }
npm verb addNamed [ 'nan', '~1.3.0' ]
npm verb addNamed [ null, '>=1.3.0-0 <1.4.0-0' ]
npm verb lock nan@~1.3.0 C:\Users\Dev\AppData\Roaming\npm-cache\a6a87a7e-nan-1-3-0.lock
npm verb request where is /bindings
npm verb request registry https://registry.npmjs.org/
npm verb url raw /bindings
npm verb url resolving [ 'https://registry.npmjs.org/', './bindings' ]
npm verb url resolved https://registry.npmjs.org/bindings
npm verb request where is https://registry.npmjs.org/bindings
npm info trying registry request attempt 1 at 22:34:43
npm verb etag "6SJRISMK25A1UDWM33HHCDB3Q"
npm http GET https://registry.npmjs.org/bindings
npm verb request where is /nan
npm verb request registry https://registry.npmjs.org/
npm verb url raw /nan
npm verb url resolving [ 'https://registry.npmjs.org/', './nan' ]
npm verb url resolved https://registry.npmjs.org/nan
npm verb request where is https://registry.npmjs.org/nan
npm info trying registry request attempt 1 at 22:34:43
npm verb etag "AT2XJNDBWQ2S97BEVICH8DLJ7"
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm verb etag https://registry.npmjs.org/bindings from cache
npm verb addNamed [ 'bindings', '1.2.1' ]
npm verb addNamed [ '1.2.1', '1.2.1' ]
npm verb lock bindings@1.2.1 C:\Users\Dev\AppData\Roaming\npm-cache\e9060511-bindings-1-2-1.lock
npm http 304 https://registry.npmjs.org/nan
npm verb etag https://registry.npmjs.org/nan from cache
npm verb addNamed [ 'nan', '1.3.0' ]
npm verb addNamed [ '1.3.0', '1.3.0' ]
npm verb lock nan@1.3.0 C:\Users\Dev\AppData\Roaming\npm-cache\b8539500-nan-1-3-0.lock
npm info install bindings@1.2.1 into C:\Developpement\workspace\needubro\node_modules\contextify
npm info install nan@1.3.0 into C:\Developpement\workspace\needubro\node_modules\contextify
npm info installOne bindings@1.2.1
npm info installOne nan@1.3.0
npm verb node_modules\contextify\node_modules\bindings unbuild
npm verb node_modules\contextify\node_modules\nan unbuild
npm verb tar unpack C:\Users\Dev\AppData\Roaming\npm-cache\bindings\1.2.1\package.tgz
npm verb lock tar://C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\bindings C:\Users\Dev\AppData\Roaming
\npm-cache\d803e369-contextify-node-modules-bindings.lock
npm verb lock tar://C:\Users\Dev\AppData\Roaming\npm-cache\bindings\1.2.1\package.tgz C:\Users\Dev\AppData\Roaming\npm-cache\c5508
aeb-cache-bindings-1-2-1-package-tgz.lock
npm verb tar unpack C:\Users\Dev\AppData\Roaming\npm-cache\nan\1.3.0\package.tgz
npm verb lock tar://C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\nan C:\Users\Dev\AppData\Roaming\npm-
cache\292ebba3-ules-contextify-node-modules-nan.lock
npm verb lock tar://C:\Users\Dev\AppData\Roaming\npm-cache\nan\1.3.0\package.tgz C:\Users\Dev\AppData\Roaming\npm-cache\cf7cefd2--
npm-cache-nan-1-3-0-package-tgz.lock
npm info preinstall bindings@1.2.1
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\bindings
npm info build C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\bindings
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'C:\Developpement\workspace\needubro\node_modules\contextify\node_modules' ]
npm info linkStuff bindings@1.2.1
npm verb linkBins bindings@1.2.1
npm verb linkMans bindings@1.2.1
npm verb rebuildBundles bindings@1.2.1
npm info install bindings@1.2.1
npm info postinstall bindings@1.2.1
npm info preinstall nan@1.3.0
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\nan
npm info build C:\Developpement\workspace\needubro\node_modules\contextify\node_modules\nan
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'C:\Developpement\workspace\needubro\node_modules\contextify\node_modules' ]
npm info linkStuff nan@1.3.0
npm verb linkBins nan@1.3.0
npm verb linkMans nan@1.3.0
npm verb rebuildBundles nan@1.3.0
npm info install nan@1.3.0
npm info postinstall nan@1.3.0
npm verb about to build C:\Developpement\workspace\needubro\node_modules\contextify
npm info build C:\Developpement\workspace\needubro\node_modules\contextify
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'C:\Developpement\workspace\needubro\node_modules' ]
npm info linkStuff contextify@0.1.9
npm verb linkBins contextify@0.1.9
npm verb linkMans contextify@0.1.9
npm verb rebuildBundles contextify@0.1.9
npm verb rebuildBundles [ 'bindings', 'nan' ]
npm info install contextify@0.1.9

contextify@0.1.9 install C:\Developpement\workspace\needubro\node_modules\contextify
node-gyp rebuild

C:\Developpement\workspace\needubro\node_modules\contextify>node "C:\Developpement\nodejs\node_modules\npm\bin\node-gyp-bin....
\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'C:\Developpement\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@1.0.1
gyp info using node@0.10.33 | win32 | ia32
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:\Python27" in the PATH
gyp verb which succeeded C:\Python27 C:\Python27
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:1001:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:792:34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Developpement\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Developpement\workspace\needubro\node_modules\contextify
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm verb unsafe-perm in lifecycle true
npm info contextify@0.1.9 Failed to exec install script
npm ERR! contextify@0.1.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.9 install 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-gyp rebuild
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! System Windows_NT 6.1.7601
npm ERR! command "C:\Developpement\nodejs\node.exe" "C:\Developpement\nodejs\node_modules\npm\bin\npm-cli.js" "install"
"contextify" "-verbose" "-msvs_version=2013"
npm ERR! cwd C:\Developpement\workspace\needubro
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm verb node_modules\contextify unbuild
npm info preuninstall contextify@0.1.9
npm info uninstall contextify@0.1.9
npm verb true,C:\Developpement\workspace\needubro\node_modules,C:\Developpement\workspace\needubro\node_modules unbuild contextify
@0.1.9
npm info postuninstall contextify@0.1.9
npm ERR! not ok code 0

@blowsie
Copy link

blowsie commented Nov 6, 2014

Referencing:
nodejs/node-gyp#168

@ldeluca
Copy link

ldeluca commented Dec 11, 2014

I have the exact same problem as @sparqueur.

Running on Windows 7, trying to install contextify. I installed visual studio express as well as python

python --version
Python 3.4.2

I tried passing in the version of msvs
npm install contextify --msvs_version=2012

didn't work.

@domenic
Copy link
Collaborator

domenic commented Dec 11, 2014

Python 3.x does not work; 2.7 is required.

@sparqueur
Copy link

Hi, i also tried with 2.7 with no more succes... :(
Le 11 déc. 2014 20:00, "Domenic Denicola" notifications@github.com a
écrit :

Python 3.x does not work; 2.7 is required.


Reply to this email directly or view it on GitHub
#122 (comment).

@ldeluca
Copy link

ldeluca commented Dec 11, 2014

@domenic I tried just now installing 2.7. it is failing with the same error

C:\workspaces>npm install -g contextify --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\IBM\node\node.exe',
npm verb cli 'C:\IBM\node\node_modules\npm\bin\npm-cli.js',
npm verb cli 'install',
npm verb cli '-g',
npm verb cli 'contextify',
npm verb cli '--verbose' ]
npm info using npm@1.4.14
npm info using node@v0.10.29
npm verb node symlink C:\IBM\node\node.exe
npm verb cache add [ 'contextify', null ]
npm verb cache add name=undefined spec="contextify" args=["contextify",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'contextify',
npm verb parsed url path: 'contextify',
npm verb parsed url href: 'contextify' }
npm verb lock contextify C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\e90e8b6a-c
ontextify.lock
npm verb addNamed [ 'contextify', '' ]
npm verb addNamed [ null, '' ]
npm verb lock contextify@ C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\902bbeb2-
contextify.lock
npm verb url raw contextify
npm verb url resolving [ 'https://registry.npmjs.org/', './contextify' ]
npm verb url resolved https://registry.npmjs.org/contextify
npm info trying registry request attempt 1 at 16:31:05
npm verb etag "DDGY4DQC1CLLAUB03VJFME9HY"
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm verb etag contextify from cache
npm verb addNamed [ 'contextify', '0.1.9' ]
npm verb addNamed [ '0.1.9', '0.1.9' ]
npm verb lock contextify@0.1.9 C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\ddae
2453-contextify-0-1-9.lock
npm info install contextify@0.1.9 into C:\Users\IBM_ADMIN\AppData\Roaming\npm
npm info installOne contextify@0.1.9
npm info C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify unbuild
npm verb tar unpack C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\contextify\0.1.
9\package.tgz
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contexti
fy C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\843ee657-ming-npm-node-modules-c
ontextify.lock
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\contextify\0.1.
9\package.tgz C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\76376609-che-contexti
fy-0-1-9-package-tgz.lock
npm info preinstall contextify@0.1.9
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'bindings@
', null ]
npm verb cache add name=undefined spec="bindings@" args=["bindings@",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'bindings@',
npm verb parsed url path: 'bindings@
',
npm verb parsed url href: 'bindings@' }
npm verb cache add [ 'nan@~1.3.0', null ]
npm verb cache add name=undefined spec="nan@~1.3.0" args=["nan@~1.3.0",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'nan@~1.3.0',
npm verb parsed url path: 'nan@~1.3.0',
npm verb parsed url href: 'nan@~1.3.0' }
npm verb cache add name="bindings" spec="
" args=["bindings",""]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '
',
npm verb parsed url path: '',
npm verb parsed url href: '
' }
npm verb addNamed [ 'bindings', '' ]
npm verb addNamed [ null, '
' ]
npm verb lock bindings@* C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\a3858fc2-b
indings.lock
npm verb cache add name="nan" spec="~1.3.0" args=["nan","~1.3.0"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '~1.3.0',
npm verb parsed url path: '~1.3.0',
npm verb parsed url href: '~1.3.0' }
npm verb addNamed [ 'nan', '~1.3.0' ]
npm verb addNamed [ null, '>=1.3.0-0 <1.4.0-0' ]
npm verb lock nan@~1.3.0 C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\a6a87a7e-n
an-1-3-0.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 trying registry request attempt 1 at 16:31:05
npm verb etag "6SJRISMK25A1UDWM33HHCDB3Q"
npm http GET https://registry.npmjs.org/bindings
npm verb url raw nan
npm verb url resolving [ 'https://registry.npmjs.org/', './nan' ]
npm verb url resolved https://registry.npmjs.org/nan
npm info trying registry request attempt 1 at 16:31:05
npm verb etag "BASL4AHUZL2X9BYWJN23MGK84"
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm verb etag bindings from cache
npm http 304 https://registry.npmjs.org/nan
npm verb etag nan from cache
npm verb addNamed [ 'bindings', '1.2.1' ]
npm verb addNamed [ '1.2.1', '1.2.1' ]
npm verb lock bindings@1.2.1 C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\e90605
11-bindings-1-2-1.lock
npm verb addNamed [ 'nan', '1.3.0' ]
npm verb addNamed [ '1.3.0', '1.3.0' ]
npm verb lock nan@1.3.0 C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\b8539500-na
n-1-3-0.lock
npm info install bindings@1.2.1 into C:\Users\IBM_ADMIN\AppData\Roaming\npm\node
_modules\contextify
npm info install nan@1.3.0 into C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modu
les\contextify
npm info installOne bindings@1.2.1
npm info installOne nan@1.3.0
npm info C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\node_mod
ules\bindings unbuild
npm info C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\node_mod
ules\nan unbuild
npm verb tar unpack C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\bindings\1.2.1
package.tgz
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contexti
fy\node_modules\bindings C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\93a73b37-c
ontextify-node-modules-bindings.lock
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\bindings\1.2.1
package.tgz C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\7021ea86-cache-bindings
-1-2-1-package-tgz.lock
npm verb tar unpack C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\nan\1.3.0\packa
ge.tgz
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contexti
fy\node_modules\nan C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\7e993938-ules-c
ontextify-node-modules-nan.lock
npm verb lock tar://C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\nan\1.3.0\packa
ge.tgz C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache\798d4db9--npm-cache-nan-1-3-
0-package-tgz.lock
npm info preinstall bindings@1.2.1
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cont
extify\node_modules\bindings
npm info build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\no
de_modules\bindings
npm verb linkStuff [ true,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules'
,
npm verb linkStuff false,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules
\contextify\node_modules' ]
npm info linkStuff bindings@1.2.1
npm verb linkBins bindings@1.2.1
npm verb linkMans bindings@1.2.1
npm verb rebuildBundles bindings@1.2.1
npm info install bindings@1.2.1
npm info postinstall bindings@1.2.1
npm info preinstall nan@1.3.0
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cont
extify\node_modules\nan
npm info build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\no
de_modules\nan
npm verb linkStuff [ true,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules'
,
npm verb linkStuff false,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules
\contextify\node_modules' ]
npm info linkStuff nan@1.3.0
npm verb linkBins nan@1.3.0
npm verb linkMans nan@1.3.0
npm verb rebuildBundles nan@1.3.0
npm info install nan@1.3.0
npm info postinstall nan@1.3.0
npm verb about to build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cont
extify
npm info build C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify
npm verb linkStuff [ true,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules'
,
npm verb linkStuff true,
npm verb linkStuff 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules'
]
npm info linkStuff contextify@0.1.9
npm verb linkBins contextify@0.1.9
npm verb linkMans contextify@0.1.9
npm verb rebuildBundles contextify@0.1.9
npm verb rebuildBundles [ 'bindings', 'nan' ]
npm info install contextify@0.1.9

contextify@0.1.9 install C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\c
ontextify
node-gyp rebuild

C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify>node "C:\IBM\node
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'C:\IBM\node\node_modules\npm\node_modules\node-gyp\bin\n
ode-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@0.13.1
gyp info using node@0.10.29 | win32 | x64
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:/IBM/Python34" in the PA
TH
gyp verb which succeeded C:/IBM/Python34 C:/IBM/Python34
gyp ERR! configure error
ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:1000:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:791:
34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\IBM\node\node_modules\npm\node_modules\node-gy
p\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info contextify@0.1.9 Failed to exec install script
npm info C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify unbuild
npm info preuninstall contextify@0.1.9
npm info uninstall contextify@0.1.9
npm verb true,C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules,C:\Users\IBM_A
DMIN\AppData\Roaming\npm\node_modules unbuild contextify@0.1.9
npm info postuninstall contextify@0.1.9
npm ERR! contextify@0.1.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.9 install 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-gyp rebuild
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! System Windows_NT 6.1.7601
npm ERR! command "C:\IBM\node\node.exe" "C:\IBM\node\node_modules\npm
bin\npm-cli.js" "install" "-g" "contextify" "--verbose"
npm ERR! cwd C:\workspaces
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\workspaces\npm-debug.log
npm ERR! not ok code 0

@brianmcd
Copy link
Owner

Are you sure you're using 2.7?

gyp verb check python checking for Python executable "C:/IBM/Python34" in the PATH
gyp verb which succeeded C:/IBM/Python34 C:/IBM/Python34
gyp ERR! configure error
ERR! stack Error: spawn ENOENT

@ldeluca
Copy link

ldeluca commented Dec 11, 2014

when I type python --version on the command line it says 2.7

 C:\workspaces>python --version
 Python 2.7.9

@ldeluca
Copy link

ldeluca commented Dec 11, 2014

I do see the spot you're referring to @brianmcd . My path no longer references that old location. I have no idea how to clear it out so that contextify looks for 2.7. I restarted my machine, all of the system environment variables have the new 2.7 version. any advice?

for example,

echo %PYTHONPATH%
C:\Python27

echo %PATH%
otherstuff;C:\Python27

@kkoopa
Copy link
Collaborator

kkoopa commented Dec 12, 2014

npm install -g contextify --python=python2.7
or
npm config set python python2.7

@ldeluca
Copy link

ldeluca commented Dec 12, 2014

Thanks @kkoopa. Made it a little further this time

C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify>node "C:\IBM\node
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'C:\IBM\node\node_modules\npm\node_modules\node-gyp\bin\n
ode-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@0.13.1
gyp info using node@0.10.29 | win32 | x64
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 "python2.7" in the PATH
gyp verb which failed Error: not found: python2.7
gyp verb which failed at F (C:\IBM\node\node_modules\npm\node_modules\whic
h\which.js:43:28)
which failed at E (C:\IBM\node\node_modules\npm\node_modules\which\which.j
s:46:29)
gyp verb which failed at C:\IBM\node\node_modules\npm\node_modules\which\w
hich.js:57:16
gyp verb which failed at Object.oncomplete (fs.js:107:15)
gyp verb which failed python2.7 [Error: not found: python2.7]
gyp verb could not find "python2.7". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp verb check python version C:\Python27\python.exe -c "import platform; print (platform.python_version());" returned: "2.7.9\r\n"
gyp verb get node dir no --target version specified, falling back to host node v
ersion: v0.10.29
gyp verb command install [ 'v0.10.29' ]
gyp verb install input version string "v0.10.29"
gyp verb install installing version: 0.10.29
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.10.29
gyp verb build dir attempting to create "build" dir: C:\Users\IBM_ADMIN\AppData
Roaming\npm\node_modules\contextify\build
gyp verb build dir "build" dir needed to be created? C:\Users\IBM_ADMIN\AppData
Roaming\npm\node_modules\contextify\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\IBM_ADMIN\AppData\R
oaming\npm\node_modules\contextify\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\IBM_ADMIN\AppData\Roaming
npm\node_modules\contextify\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\IBM_ADMIN\AppData\Roaming
npm\node_modules\contextify\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\IBM\node\node_modules\npm\node_modules\node-gyp
\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules
\contextify\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\IBM\node\node_modules\npm\node_modules\node-gyp
\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\IBM_ADMIN.node-gyp\0.10.29\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\IBM_ADMIN.node-gyp\0.10.29'
,
gyp info spawn args '-Dmodule_root_dir=C:\Users\IBM_ADMIN\AppData\Roaming
\npm\node_modules\contextify',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules
\contextify\build',
gyp info spawn args '-Goutput_dir=.' ]
verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\IBM_ADMIN.node-gyp\0.10.29
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
gyp verb copying "node.lib" for x64 C:\Users\IBM_ADMIN.node-gyp\0.10.29\Release
\node.lib
gyp info spawn C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
Build started 12/12/2014 8:20:10 AM.
Project "C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\build\b
inding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\build\b
inding.sln" (1) is building "C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_module
s\contextify\build\contextify.vcxproj" (2) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project without a solution file, and have specified a non-default
Platform that doesn't exist for this project. [C:\Users\IBM_ADMIN\AppData\Roami
ng\npm\node_modules\contextify\build\contextify.vcxproj]
Done Building Project "C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cont
extify\build\contextify.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cont
extify\build\binding.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\build\binding.s
ln" (default target) (1) ->
"C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify\build\contextif
y.vcxproj" (default target) (2) ->
(InvalidPlatformError target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatfo
rm.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj'
is invalid. Platform='x64'. You may be seeing this message because you are try
ing to build a project without a solution file, and have specified a non-defaul
t Platform that doesn't exist for this project. [C:\Users\IBM_ADMIN\AppData\Roa
ming\npm\node_modules\contextify\build\contextify.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.06
gyp ERR! build error
gyp ERR! stack Error: C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\IBM\node\node_modules\npm\node_mod
ules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\IBM\node\node_modules\npm\node_modules\node-gy
p\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info contextify@0.1.9 Failed to exec install script
npm info C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\contextify unbuild
npm info preuninstall contextify@0.1.9
npm info uninstall contextify@0.1.9
npm verb true,C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules,C:\Users\IBM_A
DMIN\AppData\Roaming\npm\node_modules unbuild contextify@0.1.9
npm info postuninstall contextify@0.1.9
npm ERR! contextify@0.1.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.9 install 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-gyp rebuild
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! System Windows_NT 6.1.7601
npm ERR! command "C:\IBM\node\node.exe" "C:\IBM\node\node_modules\npm
bin\npm-cli.js" "install" "-g" "contextify" "--python=python2.7" "--verbose"
npm ERR! cwd C:\workspaces\jquery\cordova-jquery
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\workspaces\jquery\cordova-jquery\npm-debug.log
npm ERR! not ok code 0

@ldeluca
Copy link

ldeluca commented Dec 12, 2014

Hard to tell from the paste above, but the main issue appears to be this:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project without a solution file, and have specified a non-default
Platform that doesn't exist for this project. [C:\Users\IBM_ADMIN\AppData\Roami
ng\npm\node_modules\contextify\build\contextify.vcxproj]

Looking into this issue for the solution: #50

@kkoopa
Copy link
Collaborator

kkoopa commented Dec 12, 2014

msbuild was not found in PATH. After doing a registry lookup, it found the 32-bit version and tried running that, but you need the 64-bit version. Make sure it is available and that it gets used.

@ldeluca
Copy link

ldeluca commented Dec 12, 2014

@kkoopa I ended up installing the 32 bit version of node and it appears to install the module. However, node is installing under a weird path, not my NODEJS or NODE_PATH that is set in my environment. So I'm currently googling to try to specify the path to node that the npm install should use. Unrelated to contextify, but if you have advice I'm all ears. :)

for example, the output says:

Creating library C:\XYZ\SDP\cordova_cli\node_modules\cordova-jquery\node_modules\jsdom\node_modules\contextify\build\Release\contextify.lib 

when the node path variable is set to something like C:/node

@ldeluca
Copy link

ldeluca commented Dec 12, 2014

Got it working, had to set the node global variable, there was a prefix set that was causing the installation into another directory. I'm good now, just had to do those few steps I mentioned. python 2.7 and node 32 bit version

@domenic domenic closed this as completed Jan 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants