Skip to content

Instantly share code, notes, and snippets.

@netfantom-spb
Last active July 13, 2023 09:16
Show Gist options
  • Save netfantom-spb/6e9ecfbb1d6c070fd720d798b58997d0 to your computer and use it in GitHub Desktop.
Save netfantom-spb/6e9ecfbb1d6c070fd720d798b58997d0 to your computer and use it in GitHub Desktop.
VSCode + WSL + NodeJS tips & tricks

VSCode + WSL + NodeJS tips & tricks

Installation

  1. Install NPM & n nodejs package manager
sudo apt update && sudo apt upgrade
sudo apt install npm
npm i -g n
  1. Insall node
sudo nvm i 18.16.1

Update PG_HOST to .env file when Postgres works on HOST system

sed -i "s/PG_HOST=[^\n]*/PG_HOST=`cat /etc/resolv.conf | grep nameserver | awk '{print $2}'`/" .env

Fix ecssextactor clipboard problem

sudo apt-get install xclip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment