Skip to content

Instantly share code, notes, and snippets.

@TheDahv
Created March 23, 2012 18:22
Show Gist options
  • Save TheDahv/2173457 to your computer and use it in GitHub Desktop.
Save TheDahv/2173457 to your computer and use it in GitHub Desktop.
NPM Install Failure Report
# node -v => v0.6.13
# npm -v => 1.1.9
# python (IronPython) -v => IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.17379
PS C:\Applications\node\js-browser-automation> 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/request
npm http 304 https://registry.npmjs.org/htmlparser
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
> contextify@0.1.2 install C:\Applications\node\js-browser-automation\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild
C:\Applications\node\js-browser-automation\node_modules\jsdom\node_modules\contextify>node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
info it worked if it ends with ok
spawn python [ 'C:\\Users\\dpierce\\.node-gyp\\0.6.13\\tools\\gyp_addon',
'binding.gyp',
'-IC:\\Applications\\node\\js-browser-automation\\node_modules\\jsdom\\node_modules\\contextify\\build\\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
Traceback (most recent call last):
File "C:\Users\dpierce\.node-gyp\0.6.13\tools\gyp_addon", line 14, in <module>
File "C:\Users\dpierce\.node-gyp\0.6.13\tools\gyp\pylib\gyp\__init__.py", line 8, in <module>
File "C:\Users\dpierce\.node-gyp\0.6.13\tools\gyp\pylib\gyp\input.py", line 5, in <module>
ImportError: No module named compiler.astERR! Error: `gyp_addon` failed with exit code: 1
at Array.0 (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:193:18)
at EventEmitter._tickCallback (node.js:192:40)
ERR! not ok
npm WARN optional dependency failed, continuing contextify@0.1.2
jsdom@0.2.13 ./node_modules/jsdom
├── cssom@0.2.3
├── htmlparser@1.7.4
└── request@2.9.153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment