change DNSs to (8.8.8.8, 8.8.4.4)
Answer from Ehab Al-Qabbani on Stack Overflowchange DNSs to (8.8.8.8, 8.8.4.4)
I was able to install some extensions after my network admin disabled SSL Inspection on my machine.
This is not ideal as I wouldn't want this turned off for everything.
After re-enabling inspection, I set my User Settings to
"http.proxyStrictSSL": true
I am still unable to download packages, but this does appear to be the problem.
I had the same problem;
Go to 'c:\Users\hp\.vscode\extensions\extensions.json' on your computer and rename the extensions.json file you can add an extra s to make it extensionss.json. Then go back to vscode and install the extension of your choice, a new extensions.json file will be created.
You can go ahead and delete the extensionss.json file.
All the best!
Hello @Rishant Jayaswal ,
Welcome to Microsoft Q&A forum.
The error message indicates that operation not permitted, perhaps it’s blocked by permission limitation. Please find the file(s) that mentioned in error message, right-click the file, select Properties, switch to Security tab, select the corresponding user, click Edit…, confirm that the account has been assigned the proper permissions.
Try to reboot your machine and directly open VS Code and install the extension(in case the file is locked by other program/process).
Besides, is there any permission limitation on your machine? Are you using any antivirus software/extension/proxy? If so, please try to disable them temporarily and test again.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Unable to install or update extensions in VS Code - Stack Overflow
Error while installing extensions.
Cannot install any extension
failed to install extensions
Videos
Clear up the c:/Users/{user}/.vscode/extensions/ folder and it's going to work.
The error message is pretty clear. It says the file permissions on your ~/.vscode/extensions/extensions.json file don't allow for VS Code to modify the file when installing extensions. Somehow the file permissions got changed. Modify the file permissions so that other programs like VS Code can write to the file.
The solution to this problem was to right-click on the VSCode desktop icon and run this app as administrator, I am not sure why this changes whether or not you can install vscode extensions, but it works. note: this will only work for windows users.
Had a similar problem with a specifix extension. Here is what worked for me:
- Download the extension file (a .vsix extension)
- Open powershell in admin mode (rigth click, run as admin )
- In terminal go to folder location of downloaded .vsix fil
- Run:
code --install-extension <YourExtensionFileName>.vsix