Files
product_inventory/init.ps1
2024-11-07 21:49:40 -07:00

13 lines
433 B
PowerShell

# installs fnm (Fast Node Manager)
winget install Schniz.fnm
# configure fnm environment
fnm env --use-on-cd | Out-String | Invoke-Expression
# download and install Node.js
fnm use --install-if-missing 22
# verifies the right Node.js version is in the environment
node -v # should print `v22.11.0`
# verifies the right npm version is in the environment
npm -v # should print `10.9.0`
npm i -g '@google/clasp'
npm install