Atom 1.39 won't build julia-client

Please help. I’m in over my head here.

I completely uninstalled Atom, then reinstalled it… but I get the exact same error messages. Dead in the water.

I even tried Atom 1.38.2 with Julia-client 0.9.4 and Julia-client 0.8.12-beta2. Nothing worked. It seems npm is the problem.

I’m getting the same problem with Atom 1.40 (Windows 10).

C:\Users\Richard>apm install julia-client gives:

Installing julia-client to C:\Users\Richard.atom\packages failed

@pfitzseb/node-pty-prebuilt@0.8.1-prebuilt3 install C:\Users\Richard\AppData\Local\Temp\apm-install-dir-119714-16820-1ytfkky.r1yj\node_modules\julia-client\node_modules@pfitzseb\node-pty-prebuilt
prebuild-install || node scripts/install.js

C:\Users\Richard\AppData\Local\Temp\apm-install-dir-119714-16820-1ytfkky.r1yj\node_modules\julia-client\node_modules@pfitzseb\node-pty-prebuilt>if not defined npm_config_node_gyp (node “C:\Users\Richard\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\Richard\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\Richard\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. (C:\Users\Richard\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\Richard\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.18362
gyp ERR! command “C:\Users\Richard\AppData\Local\atom\app-1.40.0\resources\app\apm\bin\node.exe” “C:\Users\Richard\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\Richard\AppData\Local\Temp\apm-install-dir-119714-16820-1ytfkky.r1yj\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\Richard\AppData\Local\Temp\apm-install-dir-119714-16820-1ytfkky.r1yj\package.json’
npm WARN apm-install-dir-119714-16820-1ytfkky.r1yj No description
npm WARN apm-install-dir-119714-16820-1ytfkky.r1yj No repository field.
npm WARN apm-install-dir-119714-16820-1ytfkky.r1yj No README data
npm WARN apm-install-dir-119714-16820-1ytfkky.r1yj 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\Richard.atom.apm_logs\2019-08-14T20_46_55_510Z-debug.log

I finally got Julia-client installed successfully after I did the following:

  1. vim /usr/local/bin/apm
  2. comment out export npm_config_python="${binDir}/python-interceptor.sh"
  3. save the file
  4. in a terminal, type: apm config set python /path/to/python2.7

Looking forward to the bug fix!

1 Like

Pardon my beginner question, but where do I find vim /usr/local/bin/apm ? When I search it opens a command prompt file, but it does not include export npm_config_python="${binDir}/python-interceptor.sh".

Helgavon,

vim is a simple text editor. Use whichever text editor you like best to open the file /usr/local/bin/apm.