cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4195
Views
5
Helpful
3
Replies

Requirements missing for nodejs-2:8.17.0-1nodesource.x86_64

Setting up Linux (CentOS) workstation as a development environment

As per page 5/10 @ https://developer.cisco.com/learning/modules/dev-setup/dev-centos/step/5,

[qaswar@localhost ~]$ sudo yum install -y nodejs came up with the following error:


Node.js Packages for Enterprise Linux 8 - x86_6 250 kB/s |  77 kB     00:00    
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides python >= 2.6 needed by nodejs-2:8.17.0-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.17.0-1nodesource.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

2 Accepted Solutions

Accepted Solutions

****nothing with --nobest****

qaswar@localhost ~]$ sudo yum install -y nodejs --nobest
Last metadata expiration check: 0:04:11 ago on Tue 07 Jul 2020 10:19:50 PM PDT.
Error:
 Problem: conflicting requests
  - nothing provides python >= 2.6 needed by nodejs-2:8.16.1-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.16.1-1nodesource.x86_64
  - nothing provides python >= 2.6 needed by nodejs-2:8.16.2-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.16.2-1nodesource.x86_64
  - nothing provides python >= 2.6 needed by nodejs-2:8.17.0-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.17.0-1nodesource.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

 

*****nothing to do with --skip-broken*****

[qaswar@localhost ~]$ sudo yum install -y nodejs --skip-broken
Last metadata expiration check: 0:04:41 ago on Tue 07 Jul 2020 10:19:50 PM PDT.
Dependencies resolved.
Nothing to do.
Complete!

 

View solution in original post

If 'command not found' on 'node -V' do the following two lines

curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum install -y nodejs

If 'node -V' show some old version and you can't get updated one do the following three lines

yum module disable -y nodejs
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum install -y nodejs

I got v12.18.2

View solution in original post

3 Replies 3

****nothing with --nobest****

qaswar@localhost ~]$ sudo yum install -y nodejs --nobest
Last metadata expiration check: 0:04:11 ago on Tue 07 Jul 2020 10:19:50 PM PDT.
Error:
 Problem: conflicting requests
  - nothing provides python >= 2.6 needed by nodejs-2:8.16.1-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.16.1-1nodesource.x86_64
  - nothing provides python >= 2.6 needed by nodejs-2:8.16.2-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.16.2-1nodesource.x86_64
  - nothing provides python >= 2.6 needed by nodejs-2:8.17.0-1nodesource.x86_64
  - nothing provides /usr/bin/python needed by nodejs-2:8.17.0-1nodesource.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

 

*****nothing to do with --skip-broken*****

[qaswar@localhost ~]$ sudo yum install -y nodejs --skip-broken
Last metadata expiration check: 0:04:41 ago on Tue 07 Jul 2020 10:19:50 PM PDT.
Dependencies resolved.
Nothing to do.
Complete!

 

If 'command not found' on 'node -V' do the following two lines

curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum install -y nodejs

If 'node -V' show some old version and you can't get updated one do the following three lines

yum module disable -y nodejs
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum install -y nodejs

I got v12.18.2

Solution is underneath, clicked by mistake

Review Cisco Networking for a $25 gift card