-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not support M2 macbook air #490
Comments
I don't know why, but the plug works fine in my m2 machine now. Even if I delete whole directory, the plug is installed perfectly with x86_64 executable. |
[1/4] 🔍 Resolving packages...
success Already up-to-date.
> pkg@5.6.0
node:internal/child_process:420
throw errnoException(err, 'spawn');
^
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:420:11)
at spawn (node:child_process:733:9)
at fabricate (/Users/z/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/node_modules/pkg/lib-es5/fabricator.js:55:51)
at fabricateTwice (/Users/z/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/node_modules/pkg/lib-es5/fabricator.js:120:5)
at MultiStream._queue (/Users/z/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/node_modules/pkg/lib-es5/producer.js:266:68)
at MultiStream._next (/Users/z/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/node_modules/multistream/index.js:86:12)
at Meter.onEnd (/Users/z/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/node_modules/multistream/index.js:129:12)
at Object.onceWrapper (node:events:627:28)
at Meter.emit (node:events:513:28)
at endReadableNT (node:internal/streams/readable:1358:12) {
errno: -86,
code: 'Unknown system error -86',
syscall: 'spawn'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Edit: solved by #319 (comment) |
This put in on the right track. Since it's an x86_64 executable, you need to make sure that you have rosetta installed on an M1/M2 mac. This is installed the first time you start (from ui) an intel-program; but these days you can live your life quite happily for a while without every running intel-- until you can't. Solution is: install rosetta: |
Describe the bug
I use
vim-plug
to install markdown-preview.nvim , and both (with node/yarn or not) methods not work for me.To Reproduce
First, I use "no node/yarn method"
I followed the tutorial in the
![image](https://user-images.githubusercontent.com/43088530/184195978-d3fc3d47-3252-4a0a-9609-196207ee12e8.png)
![image](https://user-images.githubusercontent.com/43088530/184196602-9e3c6abc-b1a2-4e2a-ab02-e3121cded6d6.png)
README.md
, but got this message.So I tried to check the executable, I found that the executable cannot be executed in this machine.
Second, I try the node/yarn method
I switch the script to
![image](https://user-images.githubusercontent.com/43088530/184197221-c78e0ab0-e553-48b9-9780-bdf0978a9782.png)
![image](https://user-images.githubusercontent.com/43088530/184197293-bcd15d30-bcb2-45ee-a863-5a9b5655b03f.png)
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
, and try to compile the executable myself. But I still got this.I don't know why fetch "x64" files in my machine. Maybe it's the key point?
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: