[MM-19636] make file names consistent (#1186)
* added jq * add verbose message * add another option for getting the path of npm * use package.json to get desktop version * add componentdownload property as dinamic * fix innertext * add namespace to element * remove v from version
This commit is contained in:
@@ -158,6 +158,11 @@ function Get-NpmDir {
|
||||
if ([System.IO.File]::Exists("$npmDir\npm.cmd")) {
|
||||
return $npmDir
|
||||
}
|
||||
$progFile = ${env:ProgramW6432}
|
||||
$npmDir = Join-Path -Path "$progFile" -ChildPath "nodejs"
|
||||
if ([System.IO.File]::Exists("$npmDir\npm.cmd")) {
|
||||
return $npmDir
|
||||
}
|
||||
return $null
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user