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)

完全なレポはこちらから入手できます: 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 servergrunt --tasks私はRTFMを持っている必要があります。

于 2013-09-29T05:27:59.020 に答える