hasen's tech life

Twitter: @hasen

CentOS6でFailed: npm.noarch 0:1.3.6-5.el6というエラーが出たので対応した.

# CentOS6でFailed: npm.noarch 0:1.3.6-5.el6というエラーが出たので対応した.

$ cat /etc/redhat-release
> CentOS release 6.8 (Final)
$ sudo yum install --enablerepo=epel -y nodejs npm
> ... (中略)
> Failed:
> npm.noarch 0:1.3.6-5.el6

$ sudo rm -rf /usr/lib/node_modules
$ sudo yum remove -y nodejs npm
$ sudo yum install --enablerepo=epel -y nodejs npm