Automatic installation of node.js and npm, but without creating it from the source

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.

+5
source share
6 answers

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
+2

EC2, AMI. , , - :

  • , .
  • Node.js
  • NPM, Nave
  • Node.js Nave - NPM.
  • 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-.

+4

, , , MSI Windows, , (32 64 ) :

http://nodejs.org/download/

, msiexec/qn, :

Silent Mode MSIEXEC

node.js msi , node npm PATH .

+4

, /, redhat/centos... , RPM? . , deb, Debian.

+1

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
+1

C RPM , .

0
source

All Articles