Run npm install in every folder that contains a package.json file
$originalLocation = Get-Location
$folders = Get-ChildItem $originalLocation -Directory -Recurse -Name `
| Where {$_ -notlike "*node_modules*"} `
| Where {$_ -notlike "*jspm_packages*"} `
| where { test-path (join-path $_ "package.json") }
. npm set progress=false
foreach ($folder in $folders) {
cd $folder
. npm install
cd $originalLocation
}