nodejs uki

install nodejs npm and uki on ubuntu
1.prepare
   python - version 2.6 or higher. The build tools distributed with Node run on python.

   libssl-dev

2. install nodejs
git clone --depth 1 git://github.com/joyent/node.git # or git clone git://github.com/joyent/node.git if you want to checkout a stable tag
cd node
git checkout v0.4.11 # optional.  Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
echo 'export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules' >> ~/.profile
source ~/.profile
sudo chown -R xxx:xxx $HOME/local/node

3. install npm
    curl http://npmjs.org/install.sh | sh
(may not work) ,try this:
git clone https://github.com/isaacs/npm.git
cd npm
sudo make install
(note that github tarballs **do not contain submodules**, so
those won't work.  You'll have to also fetch the appropriate submodules
listed in the .gitmodules file.
)
4.  

你可能感兴趣的:(nodejs)