Skip to content

Couldn't update node.js on wsl #6586

Answered by adityakhare86
machinesr asked this question in Q&A
Discussion options

You must be logged in to vote

The issue you are facing happens because you installed the wrong yarn. To resolve the issue:

  1. sudo apt remove yarn
  2. sudo apt remove cmdtest
  3. 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
  4. sudo apt update && sudo apt install yarn
  5. yarn -v

NOTE: The 3rd step works for Ubuntu 16.04 or below.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@machinesr
Comment options

@krishiv1545
Comment options

@adityakhare86
Comment options

Answer selected by machinesr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants