Closed somera closed 3 years ago
What are the permissions for that directory?
ls -Al /root/.git-stats
Isn't there
[~]# ls -Al /root/.git-stats
ls: cannot access '/root/.git-stats': No such file or directory
And
[~]# ls -al
total 72
drwx------ 9 root root 4096 Apr 3 22:44 .
drwxr-xr-x 21 root root 4096 Mรคr 12 21:39 ..
-rw------- 1 root root 6348 Apr 7 16:08 .bash_history
-rw-r--r-- 1 root root 3336 Mรคr 12 22:42 .bashrc
drwxr-xr-x 3 root root 4096 Mรคr 17 01:14 .cache
drwxr-xr-x 4 root root 4096 Apr 3 22:36 .config
drwxr-xr-x 3 root root 4096 Mรคr 12 21:12 .local
drwxr-xr-x 5 root root 4096 Apr 7 20:17 .npm
ls -al
only shows the local directory. (-a
includes .
and ..
, whereas -A
does not)
The script fails to open a file in /root/
.
What's the output of ls -Al /root/
? (Should not contain sensible entries, I think).
Sorry, my mistake.
This
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ New major version of npm available! 6.14.4 โ 7.8.0 โ
โ Changelog: https://github.com/npm/cli/releases/tag/v7.8.0 โ
โ Run npm install -g npm to update! โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
was the problem. After npm update the installation works.
And there the answer on your question:
[~]# ls -Al /root/
total 68
-rw------- 1 root root 6694 Apr 7 20:33 .bash_history
-rw-r--r-- 1 root root 3336 Mรคr 12 22:42 .bashrc
drwxr-xr-x 3 root root 4096 Mรคr 17 01:14 .cache
drwxr-xr-x 4 root root 4096 Apr 3 22:36 .config
-rw-r--r-- 1 root root 19 Apr 7 20:32 .git-stats
drwxr-xr-x 3 root root 4096 Mรคr 12 21:12 .local
drwxr-xr-x 5 root root 4096 Apr 7 20:27 .npm
-rw-r--r-- 1 root root 27 Apr 3 22:44 package-lock.json
-rw-r--r-- 1 root root 161 Dez 5 2019 .profile
drwxr-xr-x 2 root root 4096 Mรคr 28 22:21 .rpmdb
drwxr-xr-x 3 root root 4096 Mรคr 12 21:03 snap
drwx------ 2 root root 4096 Mรคr 12 21:03 .ssh
-rw------- 1 root root 12985 Apr 1 15:04 .viminfo
But after the successful installation.
Glad that we could find a solution!
High five to a fellow Vim user :pray:
Logged in as root and I get this error: