I can use the functions of npm normally, but there will always be this warning after each execution result. Is there a way to remove this warning?
$ node -v
v18.0.0
$ npm -v
npm WARN logfile could not be created: Error: EACCES: permission denied, open '/Users/hehe/.npm/_logs/2022-05-02T11_06_01_461Z-debug-0.log'
8.8.0
$ npm install bootstrap
npm WARN logfile could not be created: Error: EACCES: permission denied, open '/Users/hehe/.npm/_logs/2022-05-02T11_15_13_625Z-debug-0.log'
added 2 packages, and audited 4 packages in 2s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
my os: macOS Monterey version 12.0.1
I have try the answers to this question, but is still doesn't work: npm install permission denied (macOS)