在/etc/profile里配置了nodejs的文件路径,结果每次连接终端都需要 source /etc/profile
才能正常执行 node -v
解决:
vim ~/.bashrc
追加一行 source /etc/profile
就好了
在/etc/profile里配置了nodejs的文件路径,结果每次连接终端都需要 source /etc/profile
才能正常执行 node -v
解决:
vim ~/.bashrc
追加一行 source /etc/profile
就好了