Skip to content
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

Closed
CollieIsCute opened this issue Aug 11, 2022 · 3 comments
Closed

Not support M2 macbook air #490

CollieIsCute opened this issue Aug 11, 2022 · 3 comments

Comments

@CollieIsCute
Copy link

CollieIsCute commented Aug 11, 2022

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 README.md, but got this message.
image
So I tried to check the executable, I found that the executable cannot be executed in this machine.
image

Second, I try the node/yarn method

I switch the script to Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }, and try to compile the executable myself. But I still got this.
image
I don't know why fetch "x64" files in my machine. Maybe it's the key point?
image

Desktop (please complete the following information):

  • OS: Darwin Monterey macOS 12.5
@CollieIsCute
Copy link
Author

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.

@ghost
Copy link

ghost commented Jan 20, 2023

Is there any progress towards a solution to this problem? I'm a M2 user and also have this problem.

[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)

@reinhrst
Copy link

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.

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: /usr/sbin/softwareupdate --install-rosetta --agree-to-license (for MacOS Ventura at least)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants