[英]Making sure /usr/local/bin is in my $PATH on mac
I've installed node.js for Macintosh using the lastest installer for Macintosh.我已经使用最新的 Macintosh 安装程序为 Macintosh 安装了 node.js。 I now want to check that /usr/local/bin is in my $PATH, as the installer instructed.
我现在想按照安装程序的指示检查 /usr/local/bin 是否在我的 $PATH 中。 I've opened up the Terminal application and researched help on the net, but I'm lost, as to how to accomplish the above, then start the node.js process.
我已经打开终端应用程序并在网上研究了帮助,但我迷失了,至于如何完成上述操作,然后启动 node.js 进程。 Can anyone clear this up?
任何人都可以解决这个问题吗? Thank you for very much.
非常感谢。
echo $PATH
will print your path. echo $PATH
将打印您的路径。 If you see /usr/local/bin
between some colons, then it's in your path.如果您在某些冒号之间看到
/usr/local/bin
,那么它就在您的路径中。
open terminal and type the command below打开终端并输入下面的命令
echo $PATH
You should see something like this你应该看到这样的东西
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
the presence of /usr/local/bin
in the output means you are good to go /usr/local/bin
在输出中的存在意味着你很高兴
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.