node-express app.get() marked as unresolved in webstorm

后端 未结 3 1286
[愿得一人]
[愿得一人] 2021-02-01 02:26

If you follow JetBrains\' Getting Started with Node.js in WebStorm instructions, node-express specific code is highlighted correctly. However if you create your own simple node-

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 02:47

    This worked great for me.

    TL;DR: you go to Settings/Preferences --> Languages and Frameworks --> JavaScript --> Libraries, click the Download button on the right, then select "express" (or any other library you need) and click Download and Install.

提交回复
热议问题