From d4bfd7d30d9f78eda16127af9a878e198fa6726d Mon Sep 17 00:00:00 2001 From: mattjaf Date: Wed, 30 Nov 2022 19:38:33 -0800 Subject: [PATCH] Update README.md added WSL Troubleshooting and provided a solution to a common problem (fixed typos) --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1ddd663..52c64e4 100644 --- a/README.md +++ b/README.md @@ -983,18 +983,19 @@ Now you should be able to use node as usual. ## WSL Troubleshooting -If you've encountered this error on wsl-2 +If you've encountered this error on WSL-2 ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com ``` -It may be due to your antivirus, vpn, or other reasons. +It may be due to your antivirus, VPN, or other reasons. Where you can `ping 8.8.8.8` while you can't `ping google.com` -This could be simply be solved by running this in your root directory: + +This could simply be solved by running this in your root directory: ```sh sudo rm /etc/resolv.conf @@ -1004,13 +1005,13 @@ This could be simply be solved by running this in your root directory: sudo chattr +i /etc/resolv.conf ``` -which deletes your `resolve.conf` file thats automatically generated when u run WSL, 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. +This deletes your `resolve.conf` file thats automatically generated when u run WSL, 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 check the contents of the file by running: -you can also run ```sh cat /etc/resolv.conf ``` -to check the contents of the file ## Maintainers