Installing node and yarn
March 4, 2022
Powershell config:
- Run power shell terminal and execute below command line:
Set-ExecutionPolicy Unrestricted
Node:
- install the latest LTS version of Node - https://nodejs.org/en/download/prebuilt-installer
- select the prebuilt installer, v18.20.3, Windows, x64
- make sure the path of the installation is in your PATH environment variables
Yarn:
- install yarn =
npm install -g yarn
Configuration:
- configure CA certificate to include firewall certificate
npm config set cafile "<path-to-certificate.crt>”
yarn config set cafile "<path-to-certificate.crt>”
yarn config set "strict-ssl" false -g
# this doesn't work
npm install --legacy-peer-deps
npm install -g lerna