CentOS8 に nodejs v12 を入れる
2019/12/17 12:12:532020/11/08 15:49:45
yum install でインストールすることができない。node-gyp あたりへの依存とか聞いたが、実にかったるい… bash $ curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
$ sudo yum install nodejs --disablerepo=AppStream
エラー:
問題: conflicting requests
- nothing provides python >= 2.6 needed by nodejs-2:12.13.1-1nodesource.x86_64
- nothing provides /usr/bin/python needed by nodejs-2:12.13.1-1nodesource.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)bash $ sudo yum install -y python2 yum-utils
$ sudo yumdownloader nodejs --disablerepo=AppStream
$ sudo rpm -ivh --nodeps nodejs[tab][tab] というのはタブキーを押して補完するようにという意味なので間違えないように。 Generated from
CentOS8 に nodejs v12 を入れる