microsoft / PowerBI-visuals-tools

Contains tools for building/packaging Power BI visuals
https://www.powerbi.com
MIT License
330 stars 148 forks source link

unable to install pbiviz #483

Closed LGD2dot718281828 closed 11 months ago

LGD2dot718281828 commented 11 months ago

Hi I'm following this link to set up development environment. @https://learn.microsoft.com/en-us/power-bi/developer/visuals/environment-setup. I've installed node.JS in my environment and if I use: node -v I can see the current version is 18.17.1

image

I use npm i -g powerbi-visuals-tools@latest to install pbiviz, here is the PS outcome:

image

Then I tried to verify if it is correctly installed by using: pbiviz here is PS outcome:

image

I assume this means pbiviz was not properly set up in my environment and did not go on to try next step. I tried restart my laptop and reopen PowerShell it did not work. Is there any solution to this issue? I wanted to find troubleshooting guide on github page and power bi documentation page but haven't found a similar issue like mine. Thanks!

LGD2dot718281828 commented 11 months ago

The issue is resolved. It is because directory containing global npm packages is included in my system's PATH environment variable. After I manually add it to Path it works