07-05-2020 02:06 AM
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)
Solved! Go to Solution.
07-07-2020 10:34 PM
****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!
07-07-2020 11:02 PM
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
07-07-2020 10:34 PM
****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!
07-07-2020 11:02 PM
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
07-07-2020 11:04 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide