nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
MIT License
79.09k stars 7.92k forks source link

`nvm install-latest-npm`: unknown issue #1950

Open grbhim opened 5 years ago

grbhim commented 5 years ago

ljharb commented 5 years ago

Please fill out the issue template and do not paste shell output into the issue title.

Here's the shell output, properly formatted:

BHIM-MacBook-Pro:~ bhim$ nvm install-latest-npm
Attempting to upgrade to the latest working version of npm...
* Installing latest `npm`; if this does not work on your node version, please report a bug! /Users/bhim/.nvm/versions/node/v8.0.0/bin/npm -> /Users/bhim/.nvm/versions/node/v8.0.0/lib/node_modules/npm/bin/npm-cli.js
/Users/bhim/.nvm/versions/node/v8.0.0/bin/npx -> /Users/bhim/.nvm/versions/node/v8.0.0/lib/node_modules/npm/bin/npx-cli.js
added 290 packages, removed 250 packages and updated 37 packages in 10.879s
* npm upgraded to: v6.4.1

That output seems to indicate everything worked. What problem are you having?

62f commented 4 years ago

96A9C125-5B7A-439A-A784-EF80C61720DB

62f commented 4 years ago
/bin/ash: nvm: not found
curl -I --compressed -v https://nodejs.org/dist/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 104.20.22.46:443...
* Failed to set TCP_KEEPIDLE on fd 5
* Failed to set TCP_KEEPINTVL on fd 5
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to nodejs.org (104.20.22.46) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* error setting certificate verify locations, continuing anyway:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [4904 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [520 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* 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
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* 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
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x565a39c0)
} [5 bytes data]
> HEAD /dist/ HTTP/2
> Host: nodejs.org
> user-agent: curl/7.69.1
> accept: */*
> accept-encoding: deflate, gzip
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 200 
< date: Fri, 11 Sep 2020 05:55:39 GMT
< content-type: text/html
< set-cookie: __cfduid=d1118aa1283686194e80780bd4158e3641599803739; expires=Sun, 11-Oct-20 05:55:39 GMT; path=/; domain=.nodejs.org; HttpOnly; SameSite=Lax
< cache-control: max-age=14400
< cf-cache-status: HIT
< age: 9047
< cf-request-id: 051d54e4810000ba28409ae200000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< vary: Accept-Encoding
< server: cloudflare
< cf-ray: 5d0f241a6975ba28-ATL
< content-encoding: gzip
< 
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
* Connection #0 to host nodejs.org left intact
ljharb commented 4 years ago

I'm not familiar with "ash" as a shell, what is k? @62f can you file a new issue?