A
A
Adoratus2015-09-29 02:58:23
Node.js
Adoratus, 2015-09-29 02:58:23

How to install nodejs?

Good day!
I want to learn how to use some utilities and they need nodejs. I'm new to linux and installed nodejs via apt-get, but it conflicts with something and I decided to install it manually. I downloaded the tarball, unpacked it and typed - './configure' as instructed. As I understand it, ./configure creates a configuration file that is needed during installation (if I'm wrong, please correct me). But it throws an error - 'bash: ./configure: No such file or directory'. What to do?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Shemsedinov, 2015-09-29
@Adoratus

Make a script and run it or run one command at a time:

#!/bin/bash
sudo apt-get -y install wget
sudo apt-get -y install build-essential openssl libssl-dev pkg-config python
cd /usr/src
sudo wget http://nodejs.org/dist/v4.1.1/node-v4.1.1.tar.gz
sudo tar zxf node-v4.1.1.tar.gz
sudo rm -f ./node-v4.1.1.tar.gz
cd node-v4.1.1
sudo ./configure
sudo make
sudo make install
cd ~
sudo rm -rf /usr/src/node-v4.1.1

I
Ivan, 2015-09-29
@LiguidCool

Install NVM, and install the latest version of the node through it ... In general, Google rules, everything is chewed up there.

but it conflicts

with whom?

V
Voskan Voskanyan, 2016-01-22
@HackerX

Here is a detailed guide on how to install the latest version of Node.js on Linux.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question