【经验分享】解决Linux下安装node报错:command not found

【经验分享】解决Linux下安装node报错:command not found



1、现象

  今天在linux下安装node时提示

-bash: node: command not found

2、解决方法

  在这种情况下可以使用epel来安装node

2.1 sudo yum install epel-release

image-20210316114838529

2.2 sudo yum install nodejs

image-20210316115150812

2.3 node --version

image-20210316115417782
  输出版本信息就证明安装成功了。

猜你喜欢

转载自blog.csdn.net/Sunnyside_/article/details/114882242