I installed plugin for Intellij-Idea and it doesn`t work. Why can it be? As you can see the require word doesn`t become yellow.
2 Answers
Please make sure to enable Node.js Core
library in File | Settings | Languages & Frameworks | Node.js and NPM

- 90,154
- 11
- 145
- 150
I like to hover over things that are underlined to give me clues as to where to start. Your
"path"
and"require"
are underlined. Your errors might sayUnused local variable 'path'
andUnresolved method or function require()
You might not have installed node in the current project. If you don't have node installed, try:
npm init
to create a package.json file. IntelliJ will walk you through creating the file. You can just press enter all the way through if you want and edit it later.npm install express --save
(replace express with whatever library you are trying to use) to save library in the dependencies list
How can I fix WebStorm warning “Unresolved function or method” for “require”

- 1
- 1

- 1
- 3