asciidoctor / atom-asciidoc-preview

⚛ AsciiDoc preview for the Atom editor.
https://atom.io/packages/asciidoc-preview
MIT License
142 stars 42 forks source link

install fails on Windows7: node-gyp rebuild #32

Closed tedbergeron closed 10 years ago

tedbergeron commented 10 years ago

This is probably very premature to be talking about problem with Windows ... but I'll note it here, because I'm interesting in using it in the future.

Following is error message:

C:\Users\tbergeron>apm install asciidoc-preview Installing asciidoc-preview to C:\Users\tbergeron.atom\packages failed

runas@0.5.4 install C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-11461 1-8344-1w02z83\node_modules\asciidoc-preview\node_modules\pathwatcher\node_modul es\runas node-gyp rebuild

C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-114611-8344-1w02z83\node_mo dules\asciidoc-preview\node_modules\pathwatcher\node_modules\runas>node "C:\Prog ramData\chocolatey\lib\Atom.0.113.0\tools\Atom\resources\app\apm\node_modules\at om-package-manager\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gy p\bin\node-gyp.js" rebuild

npm http GET https://registry.npmjs.org/asciidoctorjs-npm-wrapper/0.1.3 npm http GET https://registry.npmjs.org/opal-npm-wrapper npm http GET https://registry.npmjs.org/mustache/0.8.2 npm http GET https://registry.npmjs.org/wrench npm http GET https://registry.npmjs.org/cheerio npm http GET https://registry.npmjs.org/fs-plus npm http GET https://registry.npmjs.org/underscore-plus npm http GET https://registry.npmjs.org/pathwatcher npm http GET https://registry.npmjs.org/temp npm http 304 https://registry.npmjs.org/wrench npm http 304 https://registry.npmjs.org/cheerio npm http 304 https://registry.npmjs.org/mustache/0.8.2 npm http 304 https://registry.npmjs.org/asciidoctorjs-npm-wrapper/0.1.3 npm http 304 https://registry.npmjs.org/opal-npm-wrapper npm http 304 https://registry.npmjs.org/fs-plus npm http 304 https://registry.npmjs.org/underscore-plus npm http 304 https://registry.npmjs.org/temp npm http 200 https://registry.npmjs.org/pathwatcher npm http GET https://registry.npmjs.org/emissary npm http GET https://registry.npmjs.org/nan/0.8.0 npm http GET https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/runas npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/osenv/0.0.3 npm http GET https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/htmlparser2 npm http 304 https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/emissary npm http GET https://registry.npmjs.org/CSSselect npm http GET https://registry.npmjs.org/entities npm http 304 https://registry.npmjs.org/nan/0.8.0 npm http GET https://registry.npmjs.org/xmlhttprequest npm http 304 https://registry.npmjs.org/runas npm http 304 https://registry.npmjs.org/rimraf npm http 200 https://registry.npmjs.org/underscore npm http 200 https://registry.npmjs.org/async npm http 200 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/htmlparser2 npm http 304 https://registry.npmjs.org/entities npm http 304 https://registry.npmjs.org/osenv/0.0.3 npm http 304 https://registry.npmjs.org/xmlhttprequest npm http 200 https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/CSSselect gypnpm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/property-accessors npm http GET https://registry.npmjs.org/mixto npm http 304 https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/CSSwhat npm http GET https://registry.npmjs.org/domutils npm http 304 https://registry.npmjs.org/property-accessors npm http 304 https://registry.npmjs.org/mixto npm http 304 https://registry.npmjs.org/domutils npm ERR! Error: ENOENT, lstat 'C:\Users\TBERGE~1\AppData\Local\Temp\apm-install- dir-114611-8344-1w02z83\node_modules\asciidoc-preview\nodemodules\cheerio\node modules\htmlparser2\test\Stream\04-RDF.json' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools\Atom\r esources\app\apm\node_modules\atom-package-manager\bin\node.exe" "C:\Pr ogramData\chocolatey\lib\Atom.0.113.0\tools\Atom\resources\app\apm\node _modules\atom-package-manager\node_modules\npm\bin\npm-cli.js" "--globalcon fig" "C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools\Atom\resources\ap p\apm\node_modules\atom-package-manager.apmrc" "--userconfig" "C:\Users\t bergeron.atom.apmrc" "install" "C:\Users\tbergeron.atom.node-gyp.ato m.apm\asciidoc-preview\0.2.3\package.tgz" "--target=0.11.10" "--arch=ia32" "--msvs_version=2012" npm ERR! cwd C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-114611-8344-1w 02z83 npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.4 npm ERR! path C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-114611-8344-1 w02z83\node_modules\asciidoc-preview\node_modules\cheerio\node_modules\htmlparse r2\test\Stream\04-RDF.json npm ERR! fstream_path C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-11461 1-8344-1w02z83\node_modules\asciidoc-preview\node_modules\cheerio\node_modules\h tmlparser2\test\Stream\04-RDF.json npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools\Atom\res ources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\f stream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/CSSwhat npm ERR! runas@0.5.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@0.5.4 install script. npm ERR! This is most likely a problem with the runas 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 runas npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools\Atom\r esources\app\apm\node_modules\atom-package-manager\bin\node.exe" "C:\Pr ogramData\chocolatey\lib\Atom.0.113.0\tools\Atom\resources\app\apm\node _modules\atom-package-manager\node_modules\npm\bin\npm-cli.js" "--globalcon fig" "C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools\Atom\resources\ap p\apm\node_modules\atom-package-manager.apmrc" "--userconfig" "C:\Users\t bergeron.atom.apmrc" "install" "C:\Users\tbergeron.atom.node-gyp.ato m.apm\asciidoc-preview\0.2.3\package.tgz" "--target=0.11.10" "--arch=ia32" "--msvs_version=2012" npm ERR! cwd C:\Users\TBERGE~1\AppData\Local\Temp\apm-install-dir-114611-8344-1w 02z83 npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.4 npm ERR! code ELIFECYCLE npm http GET https://registry.npmjs.org/domelementtype npm http 304 https://registry.npmjs.org/domelementtype npm

C:\Users\tbergeron>

tedbergeron commented 10 years ago

The solution: Install Python for Windows. so the compiler tools could install this package.

See ATOM requirements for your version of Windows here: https://atom.io/docs/latest/build-instructions/windows

In my case I was missing Python for Windows 2.7.x found here: https://www.python.org/download/releases/2.7.8/

Then I restarted ATOM and installed asciidoc-preview inside of ATOM.

To use Atom-Asciidoc-Preview

If you don't see it in the Packages menu, restart ATOM.