0

我不确定我做了什么,但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)

完整的 repo 可以在这里找到: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)

提前感谢您的帮助、建议和问题!

4

1 回答 1

0

哦。它是grunt server 并且grunt --tasks不是您列出任务的方式。我应该有 RTFM。

于 2013-09-29T05:27:59.020 回答