(stackoverflow)[https://stackoverflow.com/questions/20136714/how-can-i-fix-webstorm-warning-unresolved-function-or-method-for-require-fi]
enable Node.js Globals predefined library in Settings/Languages & Frameworks/JavaScript/Libraries
开启IDE的相关配置!