Webstorm 7 cannot recognize node API methods

后端 未结 5 1291
南旧
南旧 2020-12-18 17:48

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 c

5条回答
  •  囚心锁ツ
    2020-12-18 18:19

    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.)

提交回复
热议问题