Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用节点包管理器安装了凉亭,但我总是得到“找不到凉亭命令”。但如果我输入/usr/local/share/npm/bin/bower它工作正常。
/usr/local/share/npm/bin/bower
我读到我必须添加export PATH=~/usr/local/share/npm/bin:$PATH到 ~/.profile 但我不确定我是否正确添加了它
export PATH=~/usr/local/share/npm/bin:$PATH
如果有人能把我推向正确的方向。
我编辑了错误的文件。它是 .bash_profile 而不是 .profile