I just installed WebStorm. I'm working on a small Node.js app.
I've attached the Node.js source code, and when I click on the Node.js settings, I can see that it can recognize my various node modules, etc.
I'm having two issues:
exports
, require
).require('winston')
, it tells me that it has no code insight. (Is there a way I can add the source code?)WebStorm lets you run and debug Node. js applications using Node. js on Windows Subsystem for Linux. You can choose Node.
Enable Live EditPress Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Debugger | Live Edit. Select Update Node.
IntelliJ IDEA helps you run and debug your Node. js applications. You can debug applications that are started from IntelliJ IDEA as well as attach to already running applications.
In short, you have to go to Preferences -> Languages & Frameworks -> Node. js and NPM, and click Enable.
For 2018 and later versions of WebStorm:
In Settings -> Languages & Frameworks -> Node.js and NPM, check Coding assistance for Node.js:
In older Webstorm versions, this was called Enable Node.js Core library.
If you still see unrecognized Node symbols even with that option enabled, unckeck it, restart WebStorm, then right click on the warning and choose Enable Node.js coding assistance or just check the option again. Watch for WebStorm to show it's Indexing files. (Just had this happen today - looks like a WebStorm bug, and what I just wrote fixed the situation.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With