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

install v10.23.2 failed (MacOS Big Sur) #2422

Closed
RonanKMcGovern opened this issue Jan 30, 2021 · 4 comments · Fixed by #2416
Closed

install v10.23.2 failed (MacOS Big Sur) #2422

RonanKMcGovern opened this issue Jan 30, 2021 · 4 comments · Fixed by #2416

Comments

@RonanKMcGovern
Copy link

Operating system and version:

MacOS Big Sur

nvm debug output:

nvm --version: v0.37.2
$TERM_PROGRAM: Apple_Terminal
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'ronanmcgovern'
${HOME}: /Users/ronanmcgovern
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v15.7.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-apple-darwin20.0)'
uname -a: 'Darwin 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'
checksum binary: 'shasum'
OS version: macOS 11.0.1 20B29
curl: /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
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/bin/git, git version 2.24.3 (Apple Git-128)
grep: /usr/bin/grep, grep (BSD grep) 2.5.1-FreeBSD
awk: /usr/bin/awk, awk version 20200816
nvm current: v15.7.0
which node: ${NVM_DIR}/versions/node/v15.7.0/bin/node
which iojs: iojs not found
which npm: /usr/local/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v15.7.0
npm root -g: ${NVM_DIR}/versions/node/v15.7.0/lib/node_modules
#### `nvm ls` output:
->      v15.7.0
         system
default -> node (-> v15.7.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v15.7.0) (default)
stable -> 15.7 (-> v15.7.0) (default)
lts/* -> lts/fermium (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.23.2 (-> N/A)
lts/erbium -> v12.20.1 (-> N/A)
lts/fermium -> v14.15.4 (-> N/A)

How did you install nvm?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

What steps did you perform?

I copied bash profile into zshrc after installing using the. terminal/
I then started my terminal again.

What happened?

Then I did nvm install 10

What did you expect to happen?

I expected it to install version node version 10 but instead I got:

../deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.s:4082:8: error: invalid alignment value
.align 32
       ^
../deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.s:4435:1: error: unknown directive
.size aesni_cbc_sha256_enc_shaext,.-aesni_cbc_sha256_enc_shaext
^
make[1]: *** [/Users/ronanmcgovern/.nvm/.cache/src/node-v10.23.2/files/out/Release/obj.target/openssl/deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.o] Error 1
rm 25f34d6f099ef180eb377c32774575c9a5fbfa4d.intermediate
make: *** [node] Error 2
nvm: install v10.23.2 failed!

Is there anything in any of your profile files that modifies the PATH?

The following in zshrc:

export TEST_VAR='Test variable'

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

*   Trying 104.20.22.46...
* TCP_NODELAY set
* Connected to nodejs.org (104.20.22.46) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305
* ALPN, server accepted to use h2
* Server certificate:
*  subject: OU=Domain Control Validated; OU=PositiveSSL Wildcard; CN=*.nodejs.org
*  start date: Oct 21 00:00:00 2019 GMT
*  expire date: Jan 18 23:59:59 2022 GMT
*  subjectAltName: host "nodejs.org" matched cert's "nodejs.org"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x13180be00)
> HEAD /dist/ HTTP/2
> Host: nodejs.org
> User-Agent: curl/7.64.1
> Accept: */*
> Accept-Encoding: deflate, gzip
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
HTTP/2 200 
< date: Sat, 30 Jan 2021 21:04:10 GMT
date: Sat, 30 Jan 2021 21:04:10 GMT
< content-type: text/html
content-type: text/html
< set-cookie: __cfduid=d0f387af796bb63f9c9d4743bf82fc0f21612040650; expires=Mon, 01-Mar-21 21:04:10 GMT; path=/; domain=.nodejs.org; HttpOnly; SameSite=Lax
set-cookie: __cfduid=d0f387af796bb63f9c9d4743bf82fc0f21612040650; expires=Mon, 01-Mar-21 21:04:10 GMT; path=/; domain=.nodejs.org; HttpOnly; SameSite=Lax
< cache-control: max-age=14400
cache-control: max-age=14400
< cf-cache-status: HIT
cf-cache-status: HIT
< age: 1533
age: 1533
< cf-request-id: 07f6b5559100003e64171e8000000001
cf-request-id: 07f6b5559100003e64171e8000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< vary: Accept-Encoding
vary: Accept-Encoding
< server: cloudflare
server: cloudflare
< cf-ray: 619e24cf4eea3e64-ADL
cf-ray: 619e24cf4eea3e64-ADL
< content-encoding: gzip
content-encoding: gzip

< 
* Connection #0 to host nodejs.org left intact
* Closing connection 0
@ljharb
Copy link
Member

ljharb commented Jan 30, 2021

Do you by chance have an M1 Mac?

@RonanKMcGovern
Copy link
Author

I do indeed have an M1 chip. Macbook Pro

@ljharb
Copy link
Member

ljharb commented Jan 30, 2021

node can't be compiled on an M1 at all - folks have gotten it to work on node 15 (see #2416) but you need to use rosetta mode to install other versions of node.

@RonanKMcGovern
Copy link
Author

Thanks @ljharb , appreciate it.

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

Successfully merging a pull request may close this issue.

2 participants