Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Installing “[email protected]” failed #772

Closed
1 task done
shokan opened this issue Aug 16, 2019 · 2 comments
Closed
1 task done

Installing “[email protected]” failed #772

shokan opened this issue Aug 16, 2019 · 2 comments

Comments

@shokan
Copy link

shokan commented Aug 16, 2019

  • I have reset Atom to defaults prior to submitting report.
  • [] I have not reset Atom to defaults prior to submitting report.

Description

cannot install the platformio-ide-terminal plugin

Steps to reproduce

  1. Go to: Atom -> Preferences -> Install ->
  2. Choose: platformio-ide-terminal

Expected behavior:
Get access to the terminal

Actual behavior:

Installing “[email protected]” failed.Hide output…

> [email protected] install /private/var/folders/5l/bkxy55qx31zbyh47t9b76n800000gn/T/apm-install-dir-119716-1038-k1fhe3.jy0ud/node_modules/platformio-ide-terminal/node_modules/node-pty-prebuilt-multiarch
> prebuild-install || node scripts/install.js


prebuild-install WARN install No prebuilt binaries found (target=3.1.10 runtime=node arch=x64 libc= platform=darwin)
gyp ERR! configure error 
gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.7.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at PythonFinder.failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:501:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:14)
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:282:7)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:380:11)
gyp ERR! stack     at Socket.emit (events.js:182:13)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:596:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/5l/bkxy55qx31zbyh47t9b76n800000gn/T/apm-install-dir-119716-1038-k1fhe3.jy0ud/node_modules/platformio-ide-terminal/node_modules/node-pty-prebuilt-multiarch
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 '/private/var/folders/5l/bkxy55qx31zbyh47t9b76n800000gn/T/apm-install-dir-119716-1038-k1fhe3.jy0ud/package.json'
npm WARN apm-install-dir-119716-1038-k1fhe3.jy0ud No description
npm WARN apm-install-dir-119716-1038-k1fhe3.jy0ud No repository field.
npm WARN apm-install-dir-119716-1038-k1fhe3.jy0ud No README data
npm WARN apm-install-dir-119716-1038-k1fhe3.jy0ud No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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!     /Users/shokan/.atom/.apm/_logs/2019-08-16T17_20_45_725Z-debug.log

Reproduces how often:

Versions

> atom --version
Atom    : 1.40.0
Electron: 3.1.10
Chrome  : 66.0.3359.181
Node    : 10.2.0
> apm --version

apm  2.4.2
npm  6.2.0
node 10.2.1 x64
atom 1.40.0
python 3.7.1
git 2.15.0

OS name and version:
MacOs Mojave
10.14.5
Platformio-ide-terminal version:
2.9.4

@the-j0k3r
Copy link
Collaborator

the-j0k3r commented Aug 17, 2019

This works see #770 (comment) for proof and is also a duplicate of #770

Theres things to try in #770 (comment)

@platformio platformio locked as resolved and limited conversation to collaborators Aug 17, 2019
@the-j0k3r
Copy link
Collaborator

also re:

gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.7.1, which is not supported by gyp.

try with python 2.7.15 though it just works out of the box here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants