S
S
stepar2018-10-07 13:35:14
ubuntu
stepar, 2018-10-07 13:35:14

Why is npm not installing?

Guys please help, who will help me doshik decided to install npm, but it wasn’t there
Help and sudo apt install -f tried everything to no purpose please help
5bb9e15fd017f389080764.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Bogachev, 2018-10-07
@sfi0zy

In theory, NPM should be installed along with the node, it no longer needs to be delivered separately. But if suddenly it is not there:
1. Try to install everything not from the standard ubuntu repositories, but according to the instructions from the site of the node itself .
2. Try using n or some other node version manager.

N
Nikita-Fast, 2018-10-07
@Nikita-Fast

I had problems with held packages,
I went to the terminal using the ctrl + f1 command and ran sudo-apt-get update and then sudo-apt-get upgrade
then I searched for information in Yandex by the tag error of held packages and from the site ubuntu.com did according to their instructions ... in general, the problem with this was solved

K
klepiku, 2018-10-07
@klepiku

you need a note-gyp package greater than a certain version BUT it is smaller in the repositories or it is not there
look for the package itself or the ppa of the required version
, that is, the version of the package needs a newer
package written older or = 0.10.9
finally compile with pens from
https:// sources github.com/nodejs/node-gyp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question