lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

Installation error #42

Open manelclos opened 8 years ago

manelclos commented 8 years ago

oniguruma@5.1.2 install /private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/apm-install-dir-116217-13744-1h7ofs4/node_modules/rst-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma node-gyp rebuild

npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm ERR! Darwin 15.3.0 npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/manel/.atom/.apm/.apmrc" "--userconfig" "/Users/manel/.atom/.apmrc" "install" "/private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/d-116217-13744-q9xdnu/package.tgz" "--target=0.34.5" "--arch=x64" npm ERR! node v0.10.40 npm ERR! npm v2.13.3 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! oniguruma@5.1.2 install: node-gyp rebuild npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the oniguruma@5.1.2 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the oniguruma 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 oniguruma npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/apm-install-dir-116217-13744-1h7ofs4/npm-debug.log

igracia commented 8 years ago

I've run into this while installing the package in Atom 1.7.3 under OS X Yosemite. With 1.7.2 it was working fine, until I updated. I think this is a duplicate of this other bug report.

I've tried globally installing the oniguruma package with npm install -g oniguruma@5.1.2 but that doesn't seem to have any effect, though it installed correctly. I guess it's because Atom uses different node and npm versions? I have

node v6.0.0
npm  v3.8.8

My install log is

Installing “rst-preview@1.3.1” failed.Hide output…

> oniguruma@5.1.2 install /private/var/folders/bb/z8xnl6_x53j1cnmh_0y9b9b00000gn/T/apm-install-dir-11644-1199-15o2m7z/node_modules/rst-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild

npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/igracia/.atom/.apm/.apmrc" "--userconfig" "/Users/igracia/.atom/.apmrc" "install" "/private/var/folders/bb/z8xnl6_x53j1cnmh_0y9b9b00000gn/T/d-11644-1199-31p6fe/package.tgz" "--target=0.36.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! oniguruma@5.1.2 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the oniguruma@5.1.2 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oniguruma 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 oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/bb/z8xnl6_x53j1cnmh_0y9b9b00000gn/T/apm-install-dir-11644-1199-15o2m7z/npm-debug.log
igracia commented 8 years ago

I've managed to install the package with apm. Just follow the instructions to install apm, and then run apm install rst-preview