macOS 系统报错:zsh:command not found :npm

zsh:command not found :npm

——终端报此错,一般是node安装有问题,

因为,一般安装好 node,npm也会一起安装的,

所以,建议是直接卸载node,因为更新 node 可能会不管用。

卸载后使用去node官网下载安装包,而不是通过终端进行安装node!

详见:zsh:command not found :npm  :https://stackoverflow.com/questions/54390473/zsh-command-not-found-npm

该问题下采纳的方法:

   

原文地址:https://www.cnblogs.com/shenxiaolin/p/14379507.html