I am using Ubuntu 18.04.5 LTS
and want to install npm
. I have successfully installed node
, but struggle to install npm
I tried the following:
admin@admin-VirtualBox:~/$ sudo apt install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
admin@admin-VirtualBox:~/$ sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libssl1.0-dev : Depends: libssl1.0.0 (= 1.0.2n-1ubuntu5) but 1.0.2n-1ubuntu5.3 is to be installed
node-gyp : Depends: gyp (>= 0.1+20150913git1f374df9) but it is not going to be installed
nodejs-dev : Depends: python but it is not going to be installed
Depends: libssl-dev (>= 1.0.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
admin@admin-VirtualBox:~/$ sudo apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
admin@admin-VirtualBox:~/$ node --version
v8.10.0
Any suggestions how to install node-gyp?
I appreciate your replies!