npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /Users/*********/.npm/_cacache/index-v5/67/ad/d4cfe
npm ERR! errno EACCES
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 501:20 "/Users/*********/.npm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/**********/.npm/_logs/2023-12-05T02_12_13_851Z-debug-0.log
直接运行就可以:
sudo chown -R 501:20 "/Users/*********/.npm"