My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

WSL setup for node development, yarn instalation

Pedro Alvarado's photo
Pedro Alvarado
·Nov 25, 2019

I'm writing this becasue 'temporary' have a Windows machine for my development work. Mainly write some node.js scripts and a web app. Think it's better run WSL instead of Windows Shell.

I forked this gist which seems to be easy to follow. Not tested, becasue I already have most of the setup I need. I reach it while googling about installing yarn.

As gist item related to yarn intallation doesn't work for me I refer to yarn official site, which doesn't refer to WSL directly, so I picked the Debian/Ubuntu instalation.

Finally, as I'm using nvm, only need to run next CLI commands:

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 --no-install-recommends yarn