mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,34 +1,33 @@
|
||||
################################################################################
|
||||
## File: Install-NodeLts.ps1
|
||||
## Desc: Install nodejs-lts and other common node tools.
|
||||
## Must run after python is configured
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
$PrefixPath = 'C:\npm\prefix'
|
||||
$CachePath = 'C:\npm\cache'
|
||||
|
||||
New-Item -Path $PrefixPath -Force -ItemType Directory
|
||||
New-Item -Path $CachePath -Force -ItemType Directory
|
||||
|
||||
choco install nodejs-lts -y --force
|
||||
|
||||
Add-MachinePathItem $PrefixPath
|
||||
$env:Path = Get-MachinePath
|
||||
|
||||
setx NPM_CONFIG_PREFIX $PrefixPath /M
|
||||
$env:NPM_CONFIG_PREFIX = $PrefixPath
|
||||
|
||||
setx NPM_CONFIG_CACHE $CachePath /M
|
||||
$env:NPM_CONFIG_CACHE = $CachePath
|
||||
|
||||
npm config set registry http://registry.npmjs.org/
|
||||
|
||||
npm install -g bower
|
||||
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
|
||||
################################################################################
|
||||
## File: Install-NodeLts.ps1
|
||||
## Desc: Install nodejs-lts and other common node tools.
|
||||
## Must run after python is configured
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
$PrefixPath = 'C:\npm\prefix'
|
||||
$CachePath = 'C:\npm\cache'
|
||||
|
||||
New-Item -Path $PrefixPath -Force -ItemType Directory
|
||||
New-Item -Path $CachePath -Force -ItemType Directory
|
||||
|
||||
choco install nodejs-lts -y --force
|
||||
|
||||
Add-MachinePathItem $PrefixPath
|
||||
$env:Path = Get-MachinePath
|
||||
|
||||
setx NPM_CONFIG_PREFIX $PrefixPath /M
|
||||
$env:NPM_CONFIG_PREFIX = $PrefixPath
|
||||
|
||||
setx NPM_CONFIG_CACHE $CachePath /M
|
||||
$env:NPM_CONFIG_CACHE = $CachePath
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user