其他分享
首页 > 其他分享> > 【npm】npm6升7

【npm】npm6升7

作者:互联网

前言

Detailed timeline

While we will enforce a minimum of TLS 1.2 beginning October 4, 2021, we will also take steps to alert affected users to this change ahead of the deprecation.

Beginning on August 24, users who are not using TLS 1.2 will see a notification when they run npm commands with a link to this blog post.
On September 22, we will enforce TLS 1.2 for one hour starting at 05:00 UTC.

On September 27, we will enforce TLS 1.2 for one hour starting at 10:00 UTC and again for one hour at 18:00 UTC.

Finally, on September 29, we will enforce TLS 1.2 for six hours beginning at 13:00 UTC.

确保兼容性

npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz
Hello! The tls-test package was successfully downloaded and installed.

Congratulations! Your package manager appears to support TLS 1.2.

升级npm7

npm install --global npm
{
  npm: '7.24.2',
  node: '14.15.4',
  v8: '8.4.371.19-node.17',
  uv: '1.40.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.16.1',
  modules: '83',
  nghttp2: '1.41.0',
  napi: '7',
  llhttp: '2.1.3',
  openssl: '1.1.1i',
  cldr: '37.0',
  icu: '67.1',
  tz: '2020a',
  unicode: '13.0'
}

npm7新特性

标签:npm,TLS,00,1.2,will,npm6,enforce
来源: https://blog.csdn.net/yehuozhili/article/details/120635340