#What should I do if the vscode plug-in installation fails?
Solution to the failure of vscode plug-in installation
Click the install button of the corresponding plug-in in vscode to install. The installation fails and the software prompts manual installation (manually install) .
Related recommendations: vscode tutorial
Manually download the vsix installation package, then click install from VSIX..., select the vsix installation package for installation, and Error: EACCES: is displayed. permission denied, mkdir...
This situation is generally due to permission issues that prevent the installation process from operating some files.
After checking, I found the corresponding solution in the vscode project on github (reference: https://github.com/Microsoft/vscode/issues/48656#issuecomment -384834353).
is as follows:
sudo chown -R myuser:myuser ~ sudo chmod -R 700 ~
Among them, myuser is changed to your user name.
chown -R username: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.
The above is the detailed content of What should I do if the vscode plug-in installation fails?. For more information, please follow other related articles on the PHP Chinese website!