Skip to content
Myr

[Tests] `nvm install-latest-npm`: node < 0.10 breaks with npm with dropped support for TLS < 1.2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 59b0b39 · Browse files · 1 file+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−6 removed

  • tests:+8 added−6 removed

1 file+8 added−6 removed

modified:test/installation_node/install latest npm+8 added-6 removed
24 unmodified lines
25nvm install-latest-npm || die 'nvm install-latest-npm failed: 3'26NPM_VERSION="$(npm --version)"27[ "${NPM_VERSION}" = '4.6.1' ] || die "io.js v1.x updates to ${NPM_VERSION}; expected v4.6.1"2829export NPM_CONFIG_STRICT_SSL=false # the npm registry tightened up their SSL certs29# export NPM_CONFIG_STRICT_SSL=false # the npm registry tightened up their SSL certs3031## Commented because TLS < 1.2 is dropped, and this breaks npm in node < 0.1032## https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/#detailed-timeline31nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 4'32nvm install 0.8.27 >/dev/null 2>&1 || die 'install v0.8 failed'33nvm install-latest-npm || die 'nvm install-latest-npm failed: 4'34NPM_VERSION="$(npm --version)"35[ "${NPM_VERSION}" = '4.5.0' ] || die "node 0.8.27 updates to ${NPM_VERSION}; expected v4.5.0"33# nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 4'34# nvm install 0.8.27 >/dev/null 2>&1 || die 'install v0.8 failed'35# nvm install-latest-npm || die 'nvm install-latest-npm failed: 4'36# NPM_VERSION="$(npm --version)"37# [ "${NPM_VERSION}" = '4.5.0' ] || die "node 0.8.27 updates to ${NPM_VERSION}; expected v4.5.0"3839## Commented to work around travis-ci breaking 0,6 installs40# nvm deactivate >/dev/null 2>&1 || die 'unable to deactivate: 5'41# nvm install 0.6.21 >/dev/null 2>&1 || die 'install v0.6 failed'
3 unmodified lines