今天使用大量新工具(npm nodejs)的新Grunt用户.
我已经"安装"了Grunt,并且能够使用如下所述的init任务创建一个grunt.js文件:http://net.tutsplus.com/tutorials/javascript-ajax/meeting-grunt-the-build -tool-for-javascript /和这里:https://github.com/cowboy/grunt/blob/master/docs/getting_started.md.但每当我运行"grunt"命令时,我都会收到错误:
Windows Script Host Script: c:\users\[]\Documents\code\grunt\grunt.js Line: 2 Char: 1 Error: 'module' is undefined Code: 800A1391 Source: Microsoft JScript runtime error
node.js ×1