gruntjs - Node.js server file console.log() not showing when starting server with Grunt -


i starting node application using grunt command. gruntfile.js is:

module.exports = function(grunt) {      grunt.initconfig({        nodemon: {            dev: {                script: 'server.js'            }        },         watch: {              css: {                  files: ['src/css/*.scss'],                  tasks: ['sass:dev']              },              js: {                  files: ['src/js/*.js'],                  tasks: ['uglify:dev']              }        },             concurrent: {             options: {                 logconcurrentoutput: true             },             tasks: ['nodemon','watch']         }     });      grunt.loadnpmtasks('grunt-nodemon');     grunt.loadnpmtasks('grunt-contrib-watch');     grunt.loadnpmtasks('grunt-concurrent');     grunt.registertask('default',['concurrent']); }; 

when run application typing grunt following output:

c:\projects\socialmeal>grunt running "concurrent:tasks" (concurrent) task running "nodemon:dev" (nodemon) task running "watch" task waiting...   [nodemon] v1.2.1 [nodemon] restart @ time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node server.js` 

then every console.log() call @ server.js not shown. if start app using node server.js console.log() messages shown.

any hint?

found greuze. problem nodemon version. changed 1.11.0 , console.log outputs works now.

simply removed current version installed:

npm uninstall grunt-nodemon 

and changed package.json:

"grunt-nodemon": "~1.10.0", 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -