Set up your environment for developing a Power BI visual
In this article, you'll learn how to set up your environment for developing a Power BI visual.
Before you start development, you'll need to install node.js and the pbiviz package. Then, when your local environment is set up, you'll need to configure Power BI service for developing a Power BI visual.
In this article, you'll learn how to:
To install node.js:
In a web browser, navigate to node.js.
Download the latest recommended MSI installer.
Run the installer, and then follow the installation steps. Accept the terms of the license agreement and all defaults.
Restart your computer.
The pbiviz package is a zipped Power BI visual project, with all the needed scripts and assets.
To install the latest version of pbiviz, open Windows PowerShell and enter the following command.
npm i -g powerbi-visuals-tools@latest
You might get some warnings when you run this command. They should not prevent pbiviz from installing.
(Optional) Verify that your environment is set up
Confirm that the Power BI visuals tools package is installed. In PowerShell, run the command
pbiviz and review the output, including the list of supported commands.
Set up Power BI service for developing a visual
To develop a Power BI visual, you'll need to enable custom visual debugging in Power BI service. Follow the instructions in this section to enable this option.
Sign in to PowerBI.com.
Navigate to Settings > Settings > Settings.
From the General tab, select Developer. In the Developer setting, select the Enable developer mode check box, and then select Apply.