Issue when trying to install atom-import-js
Hey I get this error when I try to install it on windows 10. `Installing “[email protected]” failed.Hide output…
[email protected] install C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3 node-pre-gyp install --fallback-to-build
Failed to execute 'C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\bin\node.exe C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64' (1) C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr `-- (empty)
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.6-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.6 ABI) (falling back to source compile with node-gyp)
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 failNoPython (C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\bin\node.exe" "C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64"
gyp ERR! cwd C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\bin\node.exe C:\Users\benonymus\AppData\Local\atom\app-1.21.2\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\node_modules\atom-import-js\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\BENONY~1\AppData\Local\Temp\apm-install-dir-117107-6440-1akc8tq.1n10olmcxr\npm-debug.log npm ERR! code 1`
Hi @benonymus, sorry you're having issues installing the plugin. The sqlite dependency is known to be a little shaky. Here are a few previous issues filed on similar errors: https://github.com/Galooshi/atom-import-js/issues/12 https://github.com/Galooshi/atom-import-js/issues/15
None of those are on windows though, but there might be things in those thread that could help you. The first thing I would try is to install python and try again, as suggested by the error message:
stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
I could solve this problem on windows by adding a new PYTHON environment variable. (Control Panel » System » Advanced » Environment Variables)