首页 > Web开发 > 详细

centos7安装nodejs

时间:2016-07-09 01:57:30      阅读:186      评论:0      收藏:0      [点我收藏+]

方法一、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

centos7安装nodejs

原文:http://www.cnblogs.com/oyx305/p/5655074.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!