添加node环境变量

346 阅读1分钟

ll -a查看是否有.bash_profile

执行vim .bash_profile,把要加的环境变量export 出来,比如 export a = 1

最后执行 

 . .bash_profile

保存即可