all connections to the npm registry - including for package installation - must use TLS 1.2 or higher
Run
npm config set registry https://registry.npmjs.org/
npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz
Some computers are still running with http://registry.npmjs.org/ which is not
going to be allowed anymore for security reasons.