简体   繁体   English

Intellij Idea上的Node.js设置

[英]Node.js setup on Intellij Idea

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. 我试图在Intellij想法上设置节点服务器,而我的所有启动代码都在package.json文件中,但它要求一个js文件。 How do I fix it ? 我如何解决它 ?

I don't think the IntelliJ Node.js plugin uses the package.json file. 我不认为IntelliJ Node.js插件使用package.json文件。 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. 您将需要手动运行任何npm命令,例如npm install ,然后将IntelliJ插件指向您在package.json文件中配置为"main"脚本的同一JavaScript文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM