I have a freshly set-up Ubuntu system (18.04 LTS amd64 on standard hardware). Of course, first thing I did, was installing atom with Julia… Well, at least I tried.
For some reason atom (version 1.40.0) is giving me the following error message
“Error: Installing “julia-client@0.9.4” failed.” and I prompted to check my internet connection or open a thread here. My internet connection is doing fine and I additionally tried with a prior version of atom (1.38.2 which is working an Mac) but the problem remains. So yeah, can anybody help me with this?
Error: Cannot find module ‘/tmp/apm-install-dir-119714-6721-fo7mv8.ixpq/node_modules/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/scripts/install.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN enoent ENOENT: no such file or directory, open ‘/tmp/apm-install-dir-119714-6721-fo7mv8.ixpq/package.json’
npm WARN apm-install-dir-119714-6721-fo7mv8.ixpq No description
npm WARN apm-install-dir-119714-6721-fo7mv8.ixpq No repository field.
npm WARN apm-install-dir-119714-6721-fo7mv8.ixpq No README data
npm WARN apm-install-dir-119714-6721-fo7mv8.ixpq No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 install: prebuild-install || node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 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/minierol/.atom/.apm/_logs/2019-08-14T16_37_37_593Z-debug.log
I get the same error on windows 10 with atom 1.40.0. I uninstalled atom and cleared .atom, reinstalled and got the error again.
When I tried with ‘apm install julia-client’, i got the following:
C:\Users\thedi>apm install julia-client
Installing julia-client to C:\Users\thedi\.atom\packages failed
> @pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 install C:\Users\thedi\AppData\Local\Temp\apm-install-dir-119715-4184-ddkf7h.fotc\node_modules\julia-client\node_modules\@pfitzseb\node-pty-prebuilt
> prebuild-install || node scripts/install.js
C:\Users\thedi\AppData\Local\Temp\apm-install-dir-119715-4184-ddkf7h.fotc\node_modules\julia-client\node_modules\@pfitzseb\node-pty-prebuilt>if not defined npm_config_node_gyp (node "C:\Users\thedi\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\thedi\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
prebuild-install WARN install No prebuilt binaries found (target=3.1.10 runtime=node arch=x64 libc= platform=win32)
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:\Users\thedi\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\configure.js:492:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\thedi\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\configure.js:517:16)
gyp ERR! stack at C:\Users\thedi\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:182:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\thedi\\AppData\\Local\\atom\\app-1.40.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\thedi\\AppData\\Local\\atom\\app-1.40.0\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\thedi\AppData\Local\Temp\apm-install-dir-119715-4184-ddkf7h.fotc\node_modules\julia-client\node_modules\@pfitzseb\node-pty-prebuilt
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\thedi\AppData\Local\Temp\apm-install-dir-119715-4184-ddkf7h.fotc\package.json'
npm WARN apm-install-dir-119715-4184-ddkf7h.fotc No description
npm WARN apm-install-dir-119715-4184-ddkf7h.fotc No repository field.
npm WARN apm-install-dir-119715-4184-ddkf7h.fotc No README data
npm WARN apm-install-dir-119715-4184-ddkf7h.fotc No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 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\thedi\.atom\.apm\_logs\2019-08-15T15_36_03_643Z-debug.log
Just to gather some more data, can you try installing Atom 1.39.1, disable auto updates, and install julia-client with that version? I honestly don’t know why this issue is cropping up again – the difficult transition should have been between 1.38 and 1.39…
Downgrading to Atom 1.39 or 1.38 should work until we figure out a fix for this. You can also try these instructions, after which Juno should once again install fine.
Sorry for the inconvenience this might have caused, and I’ll keep everyone posted on our progress.
It finally upgraded after I quit and restarted and tried the upgrades again.
I had previously commented out
export npm_config_python=“${binDir}/python-interceptor.sh”
in the /usr/local/bin/apm file to get julia-client to work with Atom 1.40.0
Maybe that caused some problem. Anyway it seems to work now.
I have the same problem and running apm install julia-client in cmd is fail. Finally I tried it in Miniconda 2 prompt using python 2.7.15 and its works!