當我運行命令時 npm install -g @angular/cli,出現此錯誤。
λ npm install -g @angular/cli
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rossd\AppData\Local\npm-cache\_logs\2021-10-27T16_56_57_347Z-debug.log
我該如何解決這個問題?
我的 npm v 是 8.1.0。我的節點 v 是 v16.13.0。
uj5u.com熱心網友回復:
看起來您需要的是更新您的 node js 版本,然后也會更新您的 npm 和 LTS 版本,如本文所述,希望對您有所幫助!。
我目前正在研究 angular 8,我使用的是 npm v 7.11.2,我的節點 js v 是 14.15.1。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/340266.html
上一篇:如何在aspnetcorewebAPI上正確地將串列轉換為IQueryable
下一篇:在VSCode中npm安裝git
