1. 运行:which npm 找到npm安装路径
2. 运行:
sudo ln -s npm路径/bin/node /usr/bin/node sudo ln -s npm路径/lib/node /usr/lib/node sudo ln -s npm路径/bin/npm /usr/bin/npm
1. 运行:which npm 找到npm安装路径
2. 运行:
sudo ln -s npm路径/bin/node /usr/bin/node sudo ln -s npm路径/lib/node /usr/lib/node sudo ln -s npm路径/bin/npm /usr/bin/npm
转载于:https://www.cnblogs.com/skyline9/p/10034207.html