The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I want to setup a new custom visual development environment on my Win10. Installed (as admin, systemwide, from Powershell):
- nodejs 14.17.2. node starts properly from CLI.
- npm i -g powerbi-visuals-tools (3.2.3). I can see it with npm -g list
- npm i -g powerbi-visuals-api (3.8.2). I an see it with npm -g list, too
Now, the whole internet says that at this point the command pbiviz is just simple accessible from CLI (Powershell run as administrator). Not by me as an admin on my machine (even after Set-ExecutionPolicy Unrestricted): PowerShell says pbiviz is not recognized as a command, operable program ... . No troubleshoot of this step anywhere. Please give me tips what to look at/how to access pbiviz?
Solved! Go to Solution.
So, the solution is that:
- npm even with -g installs all packages to the actual user and not systemwide; and
- powershell -when it runs with admin rights- still runs the commands with the environment of the user who logged in.
You must run powershell as the logged in user and install packages for yourself (with -g). There are no systemwide packages.
So, the solution is that:
- npm even with -g installs all packages to the actual user and not systemwide; and
- powershell -when it runs with admin rights- still runs the commands with the environment of the user who logged in.
You must run powershell as the logged in user and install packages for yourself (with -g). There are no systemwide packages.