Couldn't update node.js on wsl #6586
-
I couldn't use node v20.12.2 in wsl vs code, but I could use it at my normal vs code If I tried to activate node 20.12.2, the yarn became error
|
Beta Was this translation helpful? Give feedback.
Answered by
adityakhare86
Apr 29, 2024
Replies: 2 comments 3 replies
-
The issue you are facing happens because you installed the wrong yarn. To resolve the issue:
NOTE: The 3rd step works for Ubuntu 16.04 or below. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
machinesr
-
This would help if you had problem with node version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue you are facing happens because you installed the wrong yarn. To resolve the issue:
sudo apt remove yarn
sudo apt remove cmdtest
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
yarn -v
NOTE: The 3rd step works for Ubuntu 16.04 or below.