Node.js setup on Intellij Idea

544 Views Asked by At

I am trying to setup node server on Intellij idea and all my startup code is present in package.json file but it asks for a js file. How do I fix it ?

1

There are 1 best solutions below

1
On

I don't think the IntelliJ Node.js plugin uses the package.json file. You would need to run any npm commands manually, like npm install, and then point the IntelliJ plugin to the same JavaScript file that you have configured as the "main" script in your package.json file.