By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.
2019-04-18 14:38:01    177    0    0
emengweb

一、当前会话有效

1、直接运行命令export PATH=$PATH:/usr/local/node

2、执行vi ~/.bash_profile修改文件中PATH一行,将/usr/local/node加入到PATH=$PATH:$HOME/bin一行之后

二、永久有效

执行并修改 vi /etc/profile,在文件末尾加上如下两行(DEMO)代码

PATH=$PATH:/usr/local/node
export PATH

三、执行:

source /etc/profile./profile

四、查看结果

echo $PATH

上一篇: [JSFL]Flash导出图片——快速将选中内容导出为png

下一篇: bash: vue: command not found

177 人读过
文档导航