在输入sudo npm install ...
出现sudo: npm:command not found的报错提示的解决办法:
建立软链
sudo chmod -R 755 opt/node-v0.12.12/ sudo ln -s /usr/local/bin/node /usr/bin/node sudo ln -s /usr/local/lib/node /usr/lib/node sudo ln -s /usr/local/bin/npm /usr/bin/npm sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf
原文地址:https://www.cnblogs.com/junethirty/p/8343913.html
时间: 2024-10-11 05:40:04