-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Failed to install extensions via code-server command, ENOTDIR, errno -20 #3605
Answered
by
code-asher
BingoKingo
asked this question in
Q&A
-
I have moved a vsix file to the directory /usr/local/bin/code-server/extensions/, but it still could not install.
***** Please use the script in bin/code-server instead!
***** This script will soon be removed!
***** See the release notes at https://github.com/cdr/code-server/releases/tag/v3.4.0
info Wrote default config file to ~/.config/code-server/config.yaml
Installing extensions...
events.js:291
throw er; // Unhandled 'error' event
^
Error: ENOTDIR: not a directory, open '/usr/local/bin/code-server/extensions/custom.vsix'
Emitted 'error' event on ReadStream instance at:
at /usr/local/lib/code-server/lib/vscode/node_modules/graceful-fs/graceful-fs.js:274:14
at /usr/local/lib/code-server/lib/vscode/node_modules/graceful-fs/graceful-fs.js:325:16
at FSReqCallback.oncomplete (fs.js:156:23) {
errno: -20,
code: 'ENOTDIR',
syscall: 'open',
path: '/usr/local/bin/code-server/extensions/custom.vsix'
}
Please help me solve that.
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
code-asher
Jun 14, 2021
VSIX files need to be uploaded through the UI (on the extensions sidebar
click the dots then "install from VSIX") or through the CLI, for
example: ```
code-server --install-extension /path/to/custom.vsix
``` You can also directly put them in the extensions directory like you've
done here but you need to unpack it with something like unzip.
Replies: 1 comment
-
VSIX files need to be uploaded through the UI (on the extensions sidebar
click the dots then "install from VSIX") or through the CLI, for
example:
```
code-server --install-extension /path/to/custom.vsix
```
You can also directly put them in the extensions directory like you've
done here but you need to unpack it with something like unzip.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
jsjoeio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment