Best way to launch npm from plugin
Answered
I need to run a node (npm) command from within my plugin.
What is the best way to do that? It would be great if I could launch this inside the "Run" tab (Alt+4).
So far I saw this, but I cannot import com.intellij.javascript.nodejs.npm.NpmManager:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006002039-Get-NodeJS-interpreter
Please sign in to leave a comment.
You must add dependency on JavaScript plugin to access its classes/functionality: https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html