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.
Cannot install any extension
Unable to install or update extensions in VS Code - Stack Overflow
I cannot install any extensions.
I am unable to install any extensions or code spaces on visual studio
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.
It happens that, this is a problem with the Egyptian ISPs' default DNS servers, which are most probably blocking some of Microsoft servers.
The solution (in case you live in Egypt):
- clear DNS cache using
ipconfig /flushdnscommand on Windows cmd (For Other OS). - change the default DNS servers in your router settings to Google's 8.8.8.8 & 8.8.4.4 (or Cloudflare's 1.1.1.1 or any other DNS server you trust).
- restart VSCode and try installing extensions.
Hopefully, everything will work fine by now.
Check this Github issue for more insight.
It probably is because of the certificate check.
Below solution works for me in CentOS 7 (Linux).
Step 1. Change the file /usr/share/applications/code.desktop
Open the file /usr/share/applications/code.desktop,
then modify the Exec value with adding --ignore-certificate-errors before %F:
Exec=/usr/share/code/code --unity-launch --ignore-certificate-errors %F
Save the file with typing sudo in the begining.

Step 2. Close all windows of vs code instances.
Step 3. Back to the terminal, use below command to open VS code:
code --ignore-certificate-errors
Step 4. Click extension button in the left side bar.
Click any extension like "Ruby" by Peng Lv, if the images in the Details page can be seen successfully, perhaps the issue is solved.
Step 5. Try to continue to install the extensions you need.
Just enjoy! May it be helpful for you.
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