Node.js older than 0.4.12 don't work correctly

2020-03-31 21:04发布

I can't install node.js v0.6.1 on AWS EC2 (Ubuntu or CentOs - never mind). After installation I type node, and processor loads to 100%.

But v0.4.12 works fine.

May be only I have this problem? Sorry then.

Please tell me what I'm doing wrong...

Thanks in advance.

2条回答
Viruses.
2楼-- · 2020-03-31 21:47

I had successfully install 0.6.x in ubuntu 11.04, Download nodejs from http://nodejs.org/

Do not install from sudo apt-get install node. This will install radio package. this radio package requires axports to be active, which is not linked with nodejs

After installing then set the environment variables echo PATH=$PTATH:/home/user/pathtonode/

查看更多
你好瞎i
3楼-- · 2020-03-31 21:54

I had the same / similar problem.

on standard 32-bit linux AMI with node v0.6, and redis package, if i opened node command line:

var redis = require('redis');
var r = redis.createClient();
r.quit();

the cpu would go to 100%.

I went to a ubuntu image, this time if I installed node v0.6, just running npm caused cpu to go to 100%.

What solved both situations was installing node v0.4.12.

查看更多
登录 后发表回答