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

No versions found on latest Mac with Big Sur with Apple M1 chip #638

Closed
chrkaatz opened this issue Nov 25, 2020 · 2 comments
Closed

No versions found on latest Mac with Big Sur with Apple M1 chip #638

chrkaatz opened this issue Nov 25, 2020 · 2 comments

Comments

@chrkaatz
Copy link

Bug Report

Error: no version found for 'lts'

Summary

When running n on a Mac with Big Sur and Apple M1, it somehow doesn't download any versions.

Steps to Reproduce

Any version will return the message, that no version can be found. It happens both for the Bash install and the global npm install.

Expected Behaviour

it should install and use the desired version

Actual Behaviour

it doesn't install and use the desired version

Other Information

Configuration Details

$ n --version
6.7.0

$ command -v node
/usr/local/bin/node

$ node -p process.platform
darwin
$ n doctor
This information is to help you diagnose issues, and useful when reporting an issue.
Note: some output may contain passwords. Redact before sharing.


COMMAND LOCATIONS AND VERSIONS

bash
/bin/bash
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.

n
/usr/local/bin/n
6.7.0

node
/usr/local/bin/node
v14.15.1
JavaScript engine: v8

npm
/usr/local/bin/npm
6.14.8

tar
/usr/bin/tar
bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6

curl or wget
/usr/bin/curl
curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets

rsync:
/usr/bin/rsync
rsync  version 2.6.9  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
              inplace, IPv6, 64-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

uname
Darwin localhost 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:10 PDT 2020; root:xnu-7195.50.7~2/RELEASE_ARM64_T8101 arm64


SETTINGS

n
node mirror: https://nodejs.org/dist
node downloads mirror: https://nodejs.org/download
install destination: /Users/ckaatz/n
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ckaatz/n/bin
ls-remote max matches: 20

Proxy


CHECKS

Checking n install destination is in PATH...
good

Checking n install destination priority in PATH...
There is a version of node installed which will be found in PATH before the n installed version.

Checking permissions for cache folder...
good

Checking permissions for install folders...
good

Checking mirror is reachable...
good
@shadowspawn shadowspawn changed the title No versions found on latest Mac with Big Sur No versions found on latest Mac with Big Sur with Apple M1 chip Nov 25, 2020
@shadowspawn
Copy link
Collaborator

shadowspawn commented Nov 25, 2020

I think the issue is that there is not yet an Apple M1 native version of node for Mac, which is what n will try and download by default:

A hopeful work-around is to override the processor architecture and download the Intel flavour of node which will run in Rosetta. I can't try this out currently, so in theory:

n --arch x64 lts

@chrkaatz
Copy link
Author

That worked, thank you!

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