Atom-platformio-ide-terminal 2.10.0-Some installed packages could not be loaded because they contain
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
相關文章
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- Installation did not succeed. The application could not be installed莫名其妙的問題解決APP
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- draw.io drawio 打不開 Page could not be loaded. Please try refreshing. Please ensure JavaScript is enabled.JavaScript
- 遠端連線MySQL錯誤“plugin caching_sha2_password could not be loaded”的解決辦法MySqlPlugin
- SQLyog連線資料庫報錯:錯誤號碼2058 plugin caching_sha2_password could not be loadedSQL資料庫Plugin
- H. Ksyusha and the Loaded Set
- python modules and packagesPythonPackage
- Requested setting INSTALLED_APPSAPP
- allowedOrigins cannot contain the gateway 報錯AIGateway
- 使用 Composer 安裝 JWT 失敗錯誤資訊 The "https://packagist.org/packages.json" file could not be downloaded 解決辦法JWTHTTPPackageJSON
- gateway 報錯 allowedOrigins cannot contain the specialGatewayAI
- 問題排查之RocketMQAutoConfiguration not loaded.MQ
- 每日一個 Golang PackagesGolangPackage
- Cannot uninstall 'ipaddress'. It is a distutils installed project and thusiPadProject
- editor does not contain a main type Maven專案AIMaven
- network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; v
- ORA-20001: Latest xml inventory is not loaded into tableXML
- Unofficial Windows Binaries for Python Extension PackagesWindowsPythonPackage
- Unity 解決 Because you are not a member of this projectUnityProject
- because it is a JDK dynamic proxy that implements 問題JDK
- studio if you already have a 64-bit JDK installedJDK
- npm publish gives “unscoped packages cannot be private”NPMPackage
- apt could not get lockAPT
- Unlucky because now anybody can shoot with their hot fix
- Error: pngquant failed to build, make sure that libpng-dev is installedErrorAIUIdev
- matplotlib使用時報錯RuntimeError: Python is not installed as a framework(一)ErrorPythonFramework
- CSS新特性contain,控制頁面的重繪與重排CSSAI
- Vue packages version conflicts 錯誤修復VuePackage
- 每日一個 Golang Packages 06/11 syncGolangPackage
- 每日一個 Golang Packages 06/10 runtimeGolangPackage
- 每日一個 Golang Packages 06/04 timeGolangPackage
- 每日一個 Golang Packages 06/05 stringsGolangPackage
- 每日一個 Golang Packages 06/09 mathGolangPackage
- 每日一個 Golang Packages 06/12 fmtGolangPackage