2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: Install-NodeLts.ps1
|
|
|
|
|
## Desc: Install nodejs-lts and other common node tools.
|
|
|
|
|
## Must run after python is configured
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
$PrefixPath = 'C:\npm\prefix'
|
|
|
|
|
$CachePath = 'C:\npm\cache'
|
|
|
|
|
|
|
|
|
|
New-Item -Path $PrefixPath -Force -ItemType Directory
|
|
|
|
|
New-Item -Path $CachePath -Force -ItemType Directory
|
|
|
|
|
|
2020-04-17 10:53:30 +03:00
|
|
|
Choco-Install -PackageName nodejs-lts -ArgumentList "--force"
|
2019-12-13 09:48:00 -05:00
|
|
|
|
|
|
|
|
Add-MachinePathItem $PrefixPath
|
|
|
|
|
$env:Path = Get-MachinePath
|
|
|
|
|
|
2020-09-09 10:45:40 -07:00
|
|
|
setx npm_config_prefix $PrefixPath /M
|
|
|
|
|
$env:npm_config_prefix = $PrefixPath
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2021-01-15 00:27:02 +08:00
|
|
|
npm config set cache $CachePath --global
|
2019-12-13 09:48:00 -05:00
|
|
|
npm config set registry http://registry.npmjs.org/
|
|
|
|
|
|
|
|
|
|
npm install -g cordova
|
|
|
|
|
npm install -g grunt-cli
|
|
|
|
|
npm install -g gulp-cli
|
|
|
|
|
npm install -g parcel-bundler
|
|
|
|
|
npm install -g --save-dev webpack webpack-cli
|
|
|
|
|
npm install -g yarn
|
2020-02-07 17:01:56 +05:00
|
|
|
npm install -g lerna
|
2020-02-20 14:28:35 -05:00
|
|
|
npm install -g node-sass
|
2020-07-07 08:37:15 +00:00
|
|
|
npm install -g newman
|
2020-07-17 15:29:03 +07:00
|
|
|
|
2020-09-09 10:45:40 -07:00
|
|
|
Invoke-PesterTests -TestFile "Node"
|