1. 安装nodejs http://nodejs.cn/
2. 配置webstrom File --> Settings --> (搜索node)Node.js and NPM --> Node interpreter 设置 node.exe的路径