如何使用 Yeoman最好的方法创建一个新的 Backbone 项目?

问题描述

我对 Backbone 生态系统完全陌生。对于我的一个项目,我使用 Yeoman 和这个生成器(生成器主干)来搭建这个项目。但是,当我尝试使用此命令列出所有 Grunt 任务时,一切都很好 grunt --tasks,控制台出现以下错误

internal/validators.js:117
    throw new ERR_INVALID_ARG_TYPE(name,'string',value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true)
    at validateString (internal/validators.js:117:11)
    at Object.join (path.js:375:7)
    at Object.file.exists (C:\Users\Dev\Desktop\BACKBONE_APPS\LIBRARY_APP\node_modules\grunt\lib\grunt\file.js:381:28)
    at task.loadTasks (C:\Users\Dev\Desktop\BACKBONE_APPS\LIBRARY_APP\node_modules\grunt\lib\grunt\task.js:371:18)
    at Array.forEach (<anonymous>)
    at Task.task.init (C:\Users\Dev\Desktop\BACKBONE_APPS\LIBRARY_APP\node_modules\grunt\lib\grunt\task.js:457:33)
    at Object.grunt.tasks (C:\Users\Dev\Desktop\BACKBONE_APPS\LIBRARY_APP\node_modules\grunt\lib\grunt.js:120:8)
    at Liftoff.<anonymous> (C:\Users\Dev\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt:66:13)
    at Liftoff.execute (C:\Users\Dev\AppData\Roaming\npm\node_modules\grunt-cli\node_modules\liftoff\index.js:203:12)
    at module.exports (C:\Users\Dev\AppData\Roaming\npm\node_modules\grunt-cli\node_modules\flagged-respawn\index.js:51:3) {
  code: 'ERR_INVALID_ARG_TYPE'
}

那么这里发生了什么?有人知道这个错误的原因吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)