需要已经下载了nvm,但经常出现系统找不到npm命令问题
(base) apple@localhost ~ % nvm -v
0.39.3
(base) apple@localhost ~ % nvm ls
v18.14.1
v19.6.1
(base) apple@localhost ~ % nvm current
none
(base) apple@localhost ~ % nvm use 19.6.1
Now using node v19.6.1 (npm v9.4.0)
就可以解决了!