我安装了PhpStorm-2022.3-aarch64.dmg。在官方网站JetBrains上下载。
我在vue devtools上单击“在编辑器中打开”按钮。
例外情况
2022-12-10 22:33:20.212 phpstorm[5378:39479] allVms required 1.8*,1.8+
2022-12-10 22:33:20.215 phpstorm[5378:39485] Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib) => false, tried: '/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (no such file), '/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))" UserInfo={NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib, NSDebugDescription=dlopen_preflight(/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib) => false, tried: '/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (no such file), '/Applications/PhpStorm.app/Contents/jbr/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), NSBundlePath=/Applications/PhpStorm.app/Contents/jbr, NSLocalizedDescription=The bundle “JBR-17.0.5+1-653.14-jcef 17.0.5” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
Could not open ContactCard.vue in the editor.
The editor process exited with an error: (code 255).
To specify an editor, specify the EDITOR env variable or add "editor" field to your Vue project config.
我尝试了.env变量EDITOR="phpstorm"
和EDITOR="~/Application/PhpStorm.app/Contents/MacOS/phpstorm"
,但我根本没有使用它。
我试着安装英特尔版本-结果是一样的。
如何解决这个问题?
1条答案
按热度按时间hmae6n7t1#
我找到原因了,我需要安装Node.js的ARM版本,安装了[Node.js v16.14 of ARM]就解决了