我不确定我做了什么,但grunt --tasks
现在给出了这个错误:
grunt --tasks
/Users/ivan/dev/frp_play/node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261
throw err;
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Object.file.exists (/Users/ivan/dev/frp_play/node_modules/grunt/lib/grunt/file.js:371:28)
at task.loadTasks (/Users/ivan/dev/frp_play/node_modules/grunt/lib/grunt/task.js:358:18)
at Array.forEach (native)
at Task.task.init (/Users/ivan/dev/frp_play/node_modules/grunt/lib/grunt/task.js:444:33)
at Object.grunt.tasks (/Users/ivan/dev/frp_play/node_modules/grunt/lib/grunt.js:113:8)
at Object.module.exports [as cli] (/Users/ivan/dev/frp_play/node_modules/grunt/lib/grunt/cli.js:38:9)
at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/grunt-cli/bin/grunt:41:20)
完整的回购邮件可在此处找到:https://github.com/ivanoats/frp_play
我真的想不出任何与众不同的事。基本上我运行了这些命令:
yo webapp
bower search bacon
bower install bacon
grunt server (worked fine)
bower install bacon --save
grunt serve (broken - no task serve)
grunt --tasks (gives error above)
提前感谢您的帮助,建议,问题!
答案 0 :(得分:0)
D'哦。这是grunt server
并且grunt --tasks
不是您列出任务的方式。我应该有RTFM。