-
For some reason, when I try to to install nvm with wsl2 with windows 11 it throws,
After looking into it, it seems that it might be caused by a vpn, antivirus, or some other reasons, some people said they were able to solve it by switching to wsl1, I would like to find a solution that doesn't resort to downgrading or disabling the firewall. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
you can try running this
it deletes your resolve.config file thats automatically generated when u run WSL then creates a new file and puts "nameserver 8.8.8.8", then creates a wsl.conf file and adds [network] and generateResolveConf = false to prevent auto generation of that file you can also run
to check the contents of the file then
|
Beta Was this translation helpful? Give feedback.
-
Your network is unable to get to that webpage. Use a VPN and then try running the command. It worked for me |
Beta Was this translation helpful? Give feedback.
you can try running this
it deletes your resolve.config file thats automatically generated when u run WSL then creates a new file and puts "nameserver 8.8.8.8", then creates a wsl.conf file and adds [network] and generateResolveConf = false to prevent auto generation of that file
you can also run
to check the contents of the file
then