NodeJS 当npm uninstall -g yarn和npm uninstall -g yarn不起作用时,如何更新Yarn版本1.5.1?

3df52oht  于 2023-06-05  发布在  Node.js
关注(0)|答案(1)|浏览(223)

当npm uninstall -g yarn和npm uninstall -g yarn不起作用时,我如何更新yarn我的版本是1. 5. 1,我使用的是windows 10

npm uninstall -g yarn

removed 1 package, and audited 1 package in 18s

found 0 vulnerabilities
npm upgrade --global yarn
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 ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\qxz3xng\AppData\Local\npm-cache\_logs\2023-06-02T05_54_25_455Z-debug-0.log
xlpyo6sf

xlpyo6sf1#

npm uninstall -g yarn
npm cache clean --force
npm install -g yarn
如果仍然不工作,检查路径C:\Program Files (x86)\Yarn并重新安装.

相关问题