Error: Module not specified (IntelliJ IDEA)

后端 未结 5 2109
终归单人心
终归单人心 2021-01-31 13:25

I was trying to execute a simple program in IntelliJ IDEA as a static web project. I\'m newbie and I\'m learning web development with Node.js. I took help from the official webs

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 13:57

    This happened to me when I started to work with a colleque's project.

    He was using jdk 12.0.2 .

    If you are suspicious jdk difference might be the case (Your IDE complains about SDK, JDK etc.):

    1. Download the appropriate jdk
    2. Move new jdk to the folder of your choice. (I use C:\Program Files\Java)
    3. On Intellij, click to the dropdown on top middle bar. Click Edit Configurations. Change jdk.
    4. File -> Invalidate Caches and Restart.

提交回复
热议问题