NPM install error TLS and Cannot read properties of null (reading 'pickAlgorithm')

解决方案两步:

第一步输入CMD命令: npm set registry=https://registry.npmjs.org/
第二部输入CMD命令 npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz

Ok了~

Solution:

First Step: run command ->  npm set registry=https://registry.npmjs.org/
Second Step: run command ->  npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz

or

Run "npm cache clear --force", then run "npm install"

你可能感兴趣的:(NPM install error TLS and Cannot read properties of null (reading 'pickAlgorithm'))