Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

"no version found" error on Mac with M1 chip #14

Open
shadowspawn opened this issue Nov 27, 2020 · 4 comments
Open

"no version found" error on Mac with M1 chip #14

shadowspawn opened this issue Nov 27, 2020 · 4 comments

Comments

@shadowspawn
Copy link
Owner

shadowspawn commented Nov 27, 2020

Using nvh install current or nvh i 8 on a Mac with the M1 chip will currently display an error that "no version found", because there are not yet native versions of node available for the new architecture.

A work-around is to launch Terminal using Rosetta, so that the terminal environment assumes x64. Then nvh will download and run node built for the Intel x64 architecture.

The nvh behaviour on Apple M1 will be reviewed when nodejs decide their plans for support:

@shadowspawn shadowspawn pinned this issue Nov 27, 2020
@ljharb
Copy link

ljharb commented Nov 27, 2020

i believe node 15 works via nvm; older versions do indeed require a Rosetta shell.

@shadowspawn
Copy link
Owner Author

I think the nvm install of node 15 on M1 will currently be building from source and not using a pre-built binary, but makes me more confident that Rosetta is a work-around (as untested by me). I have updated the text for the work-around to be more positive. 😄

@ljharb
Copy link

ljharb commented Nov 28, 2020

I think you’re probably right - i don’t yet have the hardware to test anything.

@shadowspawn
Copy link
Owner Author

Released nvh v9.6.0 which defaults to x64 on a Mac with the M1 chip, for now!

@shadowspawn shadowspawn unpinned this issue Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants