简体   繁体   中英

Error when upgrade nodes to latest version on Macos

Now I try to update Nodejs on Macos according to this guide . However, one error is here

错误图片

When I try to run Sudo npm install -gn again, another error comes up

错误图片1

Could someone help me how to fix it?

If you want to update node, a better way to do it would be to just download the installer again and run it.

https://nodejs.org/en/download/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM