prebuild-install WARN install connect ETIMEDOUT 192.30.253.112:443 gyp ERR! configure error gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.7.4, 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 19.5.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 /Users/wangbingfeng/.atom/packages/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 ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pty-prebuilt-multiarch@0.9.0-beta21.legacy install: `prebuild-install || node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-pty-prebuilt-multiarch@0.9.0-beta21.legacy 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:
Solution:
change your python version to >= v2.5.0 & < 3.0.0
% python --version
show your python versions
% pyenv versions
* System ......
3.6.5
3.6.7
access python official website, find the stable version you need. fox example: 2.7.18, then install it.
% pyenv install 2.7.18
python-build: definition not found: 2.7.18
See all available versions with `pyenv install --list'.
If the version you need is missing, try upgrading pyenv:
brew update && brew upgrade pyenv
% pyenv install --list
% pyenv install 2.7.14
% ln -s -f /usr/bin/python2 /usr/local/bin/python
rebuild Atom platformio-ide-terminal 2.10.0, then it prompts:
prebuild-install WARN install connect ETIMEDOUT 192.30.253.112:443
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 20.2.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 /Users/wangbingfeng/.atom/packages/platformio-ide-terminal/node_modules/node-pty-prebuilt-multiarch
gyp ERR! node -v v10.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty-prebuilt-multiarch@0.9.0-beta21.legacy install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-pty-prebuilt-multiarch@0.9.0-beta21.legacy 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:
reinstall xcode,
% sudo rm -rf /Library/Developer/CommandLineTools
% xcode-select --install
xcode-select: note: install requested for command line developer tools
then I found solution to install xcode in developer.apple.com site
I think I fixed it by downloading the tools manually at https://developer.apple.com/download/more/?=command%20line%20tools
access https://developer.apple.com/download/more/?=command%20line%20tools, you do not log in, it will prompt install frame, then install it.
% ls /Library/Developer/CommandLineTools
Library SDKs usr
now, you can rebuild platformio-ide-terminal 2.10.0 in Atom
references:
1. https://opensource.com/article/19/5/python-3-default-mac
2. https://dev.to/malwarebo/how-to-set-python3-as-a-default-python-version-on-mac-4jjf
3. https://developer.apple.com/forums/thread/660641