方法一、https://github.com/nodesource/distributions#rpminstall
按照上面地址中的教程安装完后,使用node -v命令报错:
-bash: /usr/local/bin/node: 没有那个文件或目录
使用: sudo node -v 则可以运行
方法二、https://www.scalescale.com/tips/nginx/install-nodejs-centos-7/
1.下载压缩包 wget http://nodejs.org/dist/v6.3.0/xxx.tar.gz
2.解压到安装目录 tar zxvf xxx.tar.gz
3. ./configure
4. make
5.make install
安装node错误:
wscript:329: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
安装:yum -y install openssl-devel
时间: 2024-12-23 22:08:05