13 lines
458 B
PowerShell
13 lines
458 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 i -D '@types/google-apps-script' |