Failed to install shell commands ENOTDIR I want to resolve this error

Asked 2 years ago, Updated 2 years ago, 141 views

I want to start Atom from terminal, but it doesn't work.
I checked and found that Atom's Install Shell Commands will be able to do it, but the following message came out and it didn't work.

Failed to install shell commands
ENOTDIR not a directory, unlink'/usr/local/bin/atom'

I would appreciate it if you could tell me how to deal with it.

atom-editor command-line

2022-09-29 22:39

1 Answers

bash-3.2$ls-ld/usr/local/bin/atom
ls: /usr/local/bin/atom:Not a directory

I have deliberately created a situation in which

bash-3.2$ls-ld/
drwxr-xr-x30 root wheel 1088 129 14:45 /
bash-3.2$ls-ld/usr
drwxr-xr-x @12 root wheel 408 129 12:28/usr
bash-3.2$ls-ld/usr/local
drwxr-xr-x14 root wheel 476 2 18 20:35/usr/local
bash-3.2$ls-ld/usr/local/bin
-rw-r--r--1 root wheel 0 2 18 20:35/usr/local/bin
bash-3.2 $ls-ld/usr/local/bin/atom
ls: /usr/local/bin/atom:Not a directory
bash-3.2$ 

In this example, /usr/local/bin is a file, not a directory, so
If you try to access /usr/local/bin/atom, it becomes Not a directory.

In this way, somewhere in the directory hierarchy is not a directory, but a file, or
I think you should check it out.


2022-09-29 22:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.