I am using WebStorm 5.0.4 to develop a node.js app.
I installed several node modules globally using
npm install -g module-nameand linked them into the project using
npm link module-name
Autocompletion does not work for any of the npm installed modules. It only works for core modules (e.g. http
or path
).
Furthermore, WebStorm gives a warning "Unresolved function or method xyz" for any of the functions I call from npm installed modules.
How do I make WebStorm autocomplete and generally become aware of the installed modules that I require
?
WebStorm lets you run and debug Node. js applications using Node. js on Windows Subsystem for Linux. You can choose 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.
I'm not sure if this accounts for your particular situation, however I ran into a similar issue in WebStorm 5.0.4, whereas anything that was required was not auto-completing. I was able to resolve this issue by going into my Project Settings, navigating to JavaScript | Libraries, checking "Node.js Core Modules" and "Node.js Globals", and clicking apply.
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