1.在官网下载Node.js 2.配置webstrom支持node.js语法检测 在file-->settings-->languages&frameworks-->node.js and NPM重新添加Node.js的路径就好了 3.重新启动Webstorm 完美解决