Problem:
Click the install button of the corresponding plug-in in vscode to install it. The installation fails and the software prompts for manual installation (manually install).
Manually download the vsix installation package, then click install from VSIX...
, select the vsix installation package for installation, and Error: EACCES: permission denied...
is displayed.
This situation is generally due to permission issues that prevent the installation process from operating some files.
Solution:
Run the following command:
sudo chown -R myuser:myuser ~ sudo chmod -R 700 ~
Among them, myuser is changed to your user name.
chown -R
User name: Group name ~: The first command is to change the directory owner, ~ is the current directory;
sudo chmod -R 700
~: Modify the permissions of the directory, 700 means rwx --- ---, that is, the current user can read, write, and execute, but group users and other users cannot read, write, or execute.
After executing these two commands, the installation will be successful.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of Error installing plug-in extension in vscode. For more information, please follow other related articles on the PHP Chinese website!