Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
我从 Stackoverlow/Unix & 得到了答案。 Linux 站点。
https:// unix.stackexchange.com/questions/25605/how-to-add-home-directory-path-to-be-discovered-by-unix-which-command
核心问题是系统不展开 ~ 主目录符号。所以我必须使用 $HOME 环境变量放置绝对目录。
~
$HOME
I got the answer from Stackoverlow/Unix & Linux site.
https://unix.stackexchange.com/questions/25605/how-to-add-home-directory-path-to-be-discovered-by-unix-which-command
The core problem was the system doesn't expand ~ home directory symbol. So I had to put the absolute directory using $HOME environment variable.
我不知道但尝试将节点添加到 /usr/local/bin 中,如下所示。
/usr/local/bin
ln -s /usr/local/bin/node ~/Unix/homebrew/bin/node
I'm not sureBut try add node to /usr/local/bin like following.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
我从 Stackoverlow/Unix & 得到了答案。 Linux 站点。
https:// unix.stackexchange.com/questions/25605/how-to-add-home-directory-path-to-be-discovered-by-unix-which-command
核心问题是系统不展开
~
主目录符号。所以我必须使用$HOME
环境变量放置绝对目录。I got the answer from Stackoverlow/Unix & Linux site.
https://unix.stackexchange.com/questions/25605/how-to-add-home-directory-path-to-be-discovered-by-unix-which-command
The core problem was the system doesn't expand
~
home directory symbol. So I had to put the absolute directory using$HOME
environment variable.我不知道
但尝试将节点添加到
/usr/local/bin
中,如下所示。I'm not sure
But try add node to
/usr/local/bin
like following.