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
相關文章
- Error: The action can not be performed because ...could not be locked?ErrorORM
- Exclusive access could not be obtained because the database is in useAIDatabase
- 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
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- Installation did not succeed. The application could not be installed莫名其妙的問題解決APP
- 遠端連線MySQL錯誤“plugin caching_sha2_password could not be loaded”的解決辦法MySqlPlugin
- draw.io drawio 打不開 Page could not be loaded. Please try refreshing. Please ensure JavaScript is enabled.JavaScript
- SQLyog連線資料庫報錯:錯誤號碼2058 plugin caching_sha2_password could not be loadedSQL資料庫Plugin
- python modules and packagesPythonPackage
- Linux Packages SearchLinuxPackage
- Types of SAP Support PackagesPackage
- [CareerCup] 4.8 Contain Tree 包含樹AI
- H. Ksyusha and the Loaded Set
- 每日一個 Golang PackagesGolangPackage
- nuget packages batch installPackageBAT
- Session State and Referenced Packages (246)SessionPackage
- doesn't contain a valid partition tableAI
- 跨平臺開發 No installed provisioning profiles match the installed iOS signing identitiesiOSIDE
- PL/SQL Packages DBMS_STATSSQLPackage
- allowedOrigins cannot contain the gateway 報錯AIGateway
- editor does not contain a main type Maven專案AIMaven
- GHD Straightner produced hits place containAI
- CSS Contain 和 Cover 的數學公式CSSAI公式
- 使用 Composer 安裝 JWT 失敗錯誤資訊 The "https://packagist.org/packages.json" file could not be downloaded 解決辦法JWTHTTPPackageJSON
- npm publish gives “unscoped packages cannot be private”NPMPackage
- revoke EXECUTE privileges on powerful packages from PUBLICPackage
- Software Packages in `experimental' - 安裝方法(轉)Package
- Requested setting INSTALLED_APPSAPP
- because it is a JDK dynamic proxy that implements 問題JDK
- Unity 解決 Because you are not a member of this projectUnityProject
- gateway 報錯 allowedOrigins cannot contain the specialGatewayAI
- ERROR 1524 (HY000): Plugin is not loadedErrorPlugin
- Memory Notification: Library Cache Object loaded into SGAObject
- Spring CouldSpring