Install Node In Ubuntu. js, you must first install build-essential, g ++, libssl-dev, pkg-config, otherwise, you will encounter some errors such as sudoapt-get-yinstallbuild-essential tialg ++ libssl-devpkg-config. If you want to install sudoapt in a specific directory today, try this. /configure
To install Node. js in Ubuntu, you must first install build-essential, g ++, libssl-dev, and pkg-config. Otherwise, you will encounter some errors.
Sudo apt-get-y install build-essential g ++ libssl-dev pkg-config
If you want to install it in a specific directory today, try this.
./Configure -- prefix = $ HOME
Today's example is to assume that we install it under/tmp/nodejs.
$ Cd/tmp/nodejs
$ Wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
...
$ Tar-zxvf node-v0.8.5.tar.gz
...
$ Node-v0.8.5 cd
$./Configure
...
$ Make
...
$ Sudo make install
Check whether the installation is successful
Node-v
Install npm
Curl http://npmjs.org/install.sh | sh