弹出错误提示: Error creating Node.js Express App. Wrong express generator: F:\workspace\demo\node_modules\express\bin\express
9 回复
貌似是版本问题,4.x和3.x区别很大。手动生成,然后用WebStrom编辑。 The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below: Install the executable. The executable’s major version will match Express’s: $ npm install -g express-generator@3 Create the app: $ express /tmp/foo && cd /tmp/foo Install dependencies: $ npm install Start the server: $ npm start