How can I use the grunt-express for express 4.12?
问题 I use the Express 4.12 to build my project and I want to use grunt-express to start my application. I have known that Express 4.12 start the application via node ./bin/www, so I write the Gruntfile.js like this: express: { dev: { options: { port: 3000, bases: path.resolve('bin/'), server: path.resolve('bin/www') } } } grunt.loadNpmTasks('grunt-express') grunt.registerTask('default', ['express', 'express-keepalive']); Unfortunately, when I run grunt, it reports an error: Fatal error: Server