-
Notifications
You must be signed in to change notification settings - Fork 204
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
NodeJS #299
Comments
Never mind, I just realized it was already reported in readme.md as "Node". Maybe this issue could serve further discussions if needed. |
@ThatGuySam, the latest LTS of Node (14.15.1) works fine for me on an M1 MacBook Air via (I presume) Rosetta 2, so perhaps the status should be changed from |
@tinymachine You can check if it's running in with Rosetta(Intel) or Native(Apple) by checking Activity Monitor. Feel free to drop a screenshot in here if you do. |
To whom it serves, you can install Node v15.3.0 on Apple Silicon. here is how I did it: # from the temporary directory, download and untar Node v15.3.0
echo "Downloading Node v15.3.0 (1/4)..."
cd $TMPDIR
curl -#OL https://nodejs.org/dist/v15.3.0/node-v15.3.0.tar.gz
tar xf node-v15.3.0.tar.gz
# configure the Node installation for arm64 on macOS
echo "Installing Node v15.3.0 (2/4)..."
cd $TMPDIR/node-v15.3.0
./configure --dest-cpu=arm64 --dest-os=mac
# ensure node is built with m1 xcode tools and perform the installation (this takes about 10 minutes)
BACKUP_PATH=$PATH PATH=/usr/bin:$PATH
sudo make install -j8 V= DESTCPU="arm64" ARCH="arm64" VARIATION="" DISTYPE="release" RELEASE_URLBASE="https://nodejs.org/download/release/"
PATH=BACKUP_PATH
# ensure npm has global installation permissions
echo "Permitting Node v15.3.0 (3/4)..."
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
# update npm to verify the installation and permissions
echo "Updating NPM (4/4)..."
npm install -g npm EDIT: I’ve pushed the script to a URL, which should allow you to run the above script automatically: zsh -c "$(curl -fsSL http://jsxtools.com/curl/node)" |
@tinymachine You have a good point about changing the status to "✳️ Yes, works via Rosetta 2". However, v15 can run natively on ARM. So for clarity let's do this: So until Node 16 is officially released the status will be whatever v14 is. If v14 gets native arm support released then we'll update the status to Fully Native. |
Here's the current support as of Nov 24, 2020 v14.15.1: ✳️ Yes, works via Rosetta 2 |
I'll link directly to that ^^ comment so people can get finer details on version support |
Update is live! |
What does Node v6 support look like? |
@jonathantneal Thank you for your snippet! I tried it, but something went wrong and I get this:
followed by a bunch more similar errors. |
I think this should be marked as Full Native Apple Silicon support, or it should be split up into two entries. v15 is still a stable, full-featured release, and it's much like Ubuntu - 20.10 is still a stable release, it's just that 20.04 is LTS. |
How about this: |
@jonathantneal I tried to install using your snippet by it failed with this error
Maybe you know why is it so? |
You don't need a special snippet, you can just install it the regular way. |
@AdamGerthel you installing via brew? |
I'd really appreciate more explicit guidance on older releases; some of us are stuck on old things for various reasons and it would be nice to know whether that's going to block M1 adoption. |
@toddjonker What do you think would be a good solution? |
Nope, I installed via NVM. A month ago only v15 of node was supported but I installed v12 a few days ago without any problems. Some libraries might not work properly, for instance I've had trouble with node-sass. That's not something that a list like this can keep track of imo. It's definitely possible to simply install a different version of node in a Rosetta-launched terminal if needed. |
Why is it still an issue? |
@moffpage This is just an older discussion from before the Node 16 release. I'll close it now. |
The official name of the app
Node.js
Is there a supported build available on a public/release channel?
No
Proposed App Status
Yes, full native support as of v15, requires building from source
Proposed App Category
Developer Tools
Related Issue Tracker Link or discussion
Official discussion: nodejs/TSC#886
User report on nvm build working: https://blockforums.org/topic/453-nodejs-on-apple-silicon-m1
The text was updated successfully, but these errors were encountered: