I wanted to get into the custom plugin development. I installed Grafana localy, enabled development mode, installed necessary dependencies and ran the command:
npx @grafana/create-plugin@latest
Which resulted in error: Unsupported operating system 'Windows' detected. Please use WSL with create-plugin.
Screenshot of error:
What can I do to develop custom plugins for Grafana on windows 11 machine?
@szlaurjakub Native windows is not supported. You should use WSL in windows.
Please keep in mind installing WSL (e.g. Ubuntu) in windows is not enough. You need to use the terminal provided by WSL and not windows cmd or powershell.
For me, after installing the WSL it asks for a restart.
Post your restart, it will open a CMD like terminal asking to setup your username and password for Ubuntu.
After setting it up u can continue on your task.
Another way is to: search for WSL in your windows search bar
I’m almost sure you are running the npx windows binary from inside linux. so even if you are inside WSL you are still running windows versions so check this part of the guide Troubleshooting | Grafana Plugin Tools
Thanks @academo , the troubleshooting does the job .
Sadly, I got this after already trying out all the options.
But anyhow I was able to migrate the plugin and build is also successful.