LoginSignup
2
2

More than 5 years have passed since last update.

npm -vコマンドで怒られた

Posted at

完全に自分へのメモ。
npmをインストールしリブートしたのでバージョン確認コマンドnode -vを打った所、バージョンは出るのですがなんか怒られた。理由は不明。

terminal
~$ npm -v
5.1.0
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x                  npm update check failed                   x
x            Try running with sudo or get access             x
x            to the local update config store via            x
x sudo chown -R $USER:$(id -gn $USER) /home/botadmin/.config x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Ubuntu環境

Ubuntu環境は14.04.5 LTSの64bit。

terminal
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
terminal
$ arch
x86_64

対処

よくわからないけど以下で怒られなくなった。いいのかしら。

terminal
~$ sudo chown -R botadmin  /home/botadmin/.config
~$ npm -v
5.1.0

botadminはユーザ名ね。

2
2
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
2
2