0
0

More than 3 years have passed since last update.

CentOSにプリインストールされたnodejsとnpmをアップデートする

Posted at

nvmとかだとログインしてるユーザごとにパスが通らないといけなくて手間だったのでプリインストールされてるnodeとnpmをアップデートした

docker run -w /root --rm -it --entrypoint /bin/sh centos:centos7
# node.jsのv10をインストール
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum remove nodejs npm
su
yum install nodejs -y
# 確認
bash-4.2# node -v
v10.18.0
bash-4.2# npm -v
6.13.4
bash-4.2#
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0