[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:
Guillermo Vayá
2020-02-11 11:06:43 +01:00
committed by GitHub
parent 3c35767df5
commit 217947b906
4 changed files with 41 additions and 27 deletions

View File

@@ -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
}