PowerBI-visuals-tools: "pbiviz --install-cert" is broken on 1.11.0 in Windows 10
Hello!
In Windows 10, it looks like generateCert.ps1 in createCertFile (https://github.com/Microsoft/PowerBI-visuals-tools/blob/master/bin/pbiviz.js#L165) only generates a pfx file, but “–install-cert” is looking for a non-existent crt file.
I believe a potential fix is to change certPath to pfxPath https://github.com/Microsoft/PowerBI-visuals-tools/blob/master/bin/pbiviz.js#L208.
Error message:
PS C:\Users\ ... > pbiviz --install-cert
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ start C:\Users\ ... \AppData\Roaming\npm\node_modules\powerbi-vi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
info Certificate path: C:\Users\ ... \AppData\Roaming\npm\node_modules\powerbi-visuals-tools\certs\PowerBICustom
VisualTest_public.crt
Downgrading to 1.10.1 is my current workaround.
Thanks!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (9 by maintainers)
Windows 10 latest versions of all tools, still the same issue. just running pbiviz in powershell also shows the same error.
@mattdot @bitnovus Fix is coming https://github.com/Microsoft/PowerBI-visuals-tools/pull/167
Same issue, downgraded to
powerbi-visuals-tools@^1.10to fix the issue and install the certificate in Windows 10.C:\users<userid>\AppData\Roaming\npm should in PATH variables otheriwse pbiviz is not recognized by the system as a command…
Use below approach:
you may chose to use Windows powershell, but I had hard time to take a note of the password generated for cert hence suggesting CMD prompt approach.
Or, you can prefix pbiviz with full qualifier all the time and it should just work fine as long as this file is in the above mentioned directory
Hope this helps.