Is there a way to install node.js and npm unattended (with a shell script) without creating it from the source? I have an array of servers that automatically scales based on server load, but loading the node.js source and creating it using make takes 10 minutes.
Thank!
edit: I tried to copy over binary files, but this led to an error caused by a corrupt binary. And yes, these are all instances of EC2 m1.small.
Assuming your script looks something like this:
git clone https://github.com/joyent/node.git cd node ./configure make
:
sudo make install curl http://npmjs.org/install.sh | sudo sh
EC2, AMI. , , - :
3-5 [1], . Nave Node .
, , , [2]. Node.js , , .
[1] , Braintree Node.js @0.4.7, Node.js @0.4.1.[2] , m1.xlarge, m1.small, xl - 64-, - 32-.
, , , MSI Windows, , (32 64 ) :
http://nodejs.org/download/
, msiexec/qn, :
Silent Mode MSIEXEC
node.js msi , node npm PATH .
, /, redhat/centos... , RPM? . , deb, Debian.
deb, Ubuntu ( Debian Ubuntu):
http://blog.jetienne.com/2010/08/nodejs-deb-package-on-ubuntu-repository.html
sudo add-apt-repository ppa:jerome-etienne/neoip && sudo apt-get update && sudo apt-get install nodejs
..
$ node -v v0.2.6
npm:
curl http://npmjs.org/install.sh | sudo sh
C RPM , .