################################################################################ ## 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 Choco-Install -PackageName nodejs-lts -ArgumentList "--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 npm install -g lerna npm install -g node-sass npm install -g newman Invoke-PesterTests -TestFile "Node"