source ~/.bash_profile

问题

每次打开终端都要先执行 $source ~/.bash_profile 后才能正常使用npm

解决方法

打开终端后编辑文件.zshrc

1
vi ~/.zshrc

i进入编辑模式添加:

1
source ~/.bash_profile

Esc后输入:wq回车保存退出。

作者

Kiro

发布于

2021-10-25

更新于

2021-12-01

许可协议