更新时间:2023-11-19 18:31:40
将此行添加到 .zshrc:export PATH=$PATH
(如果 $PATH 中还没有 npm 的路径,请添加.)source ~/.zshrc
add this line to .zshrc:
export PATH=$PATH
(add path of npm if not already in $PATH.)
source ~/.zshrc
或执行以下操作之一:echo -n 'export PATH=~/bin:$PATH' >>~/.zshrc
echo -n 'export PATH=$HOME/bin:$PATH' >>~/.zshrc