Reputation: 87
I have a big issue with WebStorm (I'm using WebStorm 2019.1.2 ultimate edition) where I tried to start coding Node.js using it, when I tried to write require('fs');
it shows me an error message:
unresolved function or method require()
and as a solution it suggested me to "Enable Node.js code assistance".
I've tried to enable it (directly from the suggestion than from going to Settings) but IT CAN'T BE ENABLED.
I checked of course previous similar problems posted here on StackOverflow but I only found one post where the problem was the old version of WS (but I have 2019.1.2)
Upvotes: 0
Views: 976
Reputation: 19
I was using global packages. But when I installed packages locally in the project, it worked.
Upvotes: 0