So I had my harddisk formatted and had to redo all my WSL dev environment setup.
I went to the yarn website to install yarn, and was left confused...
For further actions, you may consider blocking this person and/or reporting abuse
I GET THIS ERROR?
node:internal/modules/cjs/loader:928
throw err;
^
Error: Cannot find module '/mnt/c/Users/User/C:\Users\User.yarn\releases\yarn-1.22.10.cjs'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Function.executeUserEntryPoint as runMain
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I had the same issue until I closed the terminal I was working in and reopened it.
how you fix it
Thanks so much!
Nice and straight forward
works for me. thx!
great work for me
Here is the way to install using npm:
npm install --global yarn
thanks man
You made my day ^^
amazing man Thank you !
This worked perfectly. Many thanks Bonnie.