atom / node-spellchecker

SpellChecker Node Module
http://atom.github.io/node-spellchecker
MIT License
300 stars 108 forks source link

Error while installing in ubuntu 16.04 #101

Open abejoe opened 6 years ago

abejoe commented 6 years ago

It searches for python.exe and fails. I'm using ubuntu though Please find the trace below! npm install spellchecker

webworker-threads@0.7.13 install /home/saravanan/maya-new/router/router/node_modules/webworker-threads node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "c:\Python\27\python.exe", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19) gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16) gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21) gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/saravanan/maya-new/router/router/node_modules/webworker-threads gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok

spellchecker@3.5.0 install /home/saravanan/maya-new/router/router/node_modules/spellchecker node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "c:\Python\27\python.exe", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19) gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16) gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21) gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/saravanan/maya-new/router/router/node_modules/spellchecker gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN router@1.2.0 No description npm WARN router@1.2.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: webworker-threads@0.7.13 (node_modules/webworker-threads): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: webworker-threads@0.7.13 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! spellchecker@3.5.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the spellchecker@3.5.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/saravanan/.npm/_logs/2018-09-24T09_35_29_330Z-debug.log

wiredmartian commented 6 years ago

I'm experiencing the same problem as well on Windows 10

spellchecker@3.5.0 install C:\Dev_Learning\web-crawler\node_modules\spellchecker node-gyp rebuild

C:\Dev_Learning\web-crawler\node_modules\spellchecker>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Dev_Learning\web-crawler\node_modules\spellchecker gyp ERR! node -v v8.11.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! spellchecker@3.5.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the spellchecker@3.5.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\solomzi\AppData\Roaming\npm-cache_logs\2018-10-01T06_33_10_664Z-debug.log

LukasKnuth commented 5 years ago

The node-gyp Script to build the native extension requires Python. Make sure you have it installed and in your PATH, try again afterwards.

To be clear, this is required to build the module, not for execution of the node application!

StraightOuttaCrompton commented 4 years ago

What version of node are you using? I couldn't install using using v13.3.0 but I could with v12.13.1.