Node.js older than 0.4.12 don't work correctly on AWS EC2. Why?

前端 未结 2 1768
青春惊慌失措
青春惊慌失措 2021-01-16 20:22

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.

2条回答
  •  旧时难觅i
    2021-01-16 20:46

    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.

提交回复
热议问题