I
I
Igor Pushkarsky2015-10-30 09:26:35
Node.js
Igor Pushkarsky, 2015-10-30 09:26:35

Ubuntu 15.04 how to install and configure node js?

Hello!
In general, I rearranged ubuntu 15.04, opened the template on GULP + BOWER, realized that I needed to install node js, launched the installation from the repository, everything went fine. Launched PHPStorm made from the npm i console, everything was installed.
Then I launched bower i, and got an error that the command was not found, installed bower globally, the same error. Thought to check node js version.
node -v
The command is executed but no response or hello.
Stupidly copying the node from the site and specifying PHPStrom where the node is located solves the problem with launching GULP, but it does not help with launching BOWER.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Arman, 2015-10-30
@Arik

There seems to be troubles with the "node" package, but if you don't find it, you need to install "nodejs", there is /usr/(s)bin/node, then you need to make a sim link to this path, literally yesterday you suffered, you also need to run everything under root . I'm really steamed under debian

L
Lynn "Coffee Man", 2015-10-30
@Lynn

https://github.com/nodesource/distributions#debinstall

N
nekrolai, 2015-10-30
@nekrolai

Install a node from nvm and remove the bower from there, and you will be happy.

O
OnYourLips, 2015-10-30
@OnYourLips

To begin with, I advise you to install a stable version of ubuntu (trusty), after which:

wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
echo 'deb https://deb.nodesource.com/node_5.x  trusty main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_5.x trusty main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update
apt-get install -y build-essential nodejs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question