Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Failed to install extensions via code-server command, ENOTDIR, errno -20 #3605

Answered by code-asher
BingoKingo asked this question in Q&A
Discussion options

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.

You must be logged in to vote
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

Comment options

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.
You must be logged in to vote
0 replies
Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /