2013-07-22 1 views
-1

Я установил grunt глобально и локально в рамках проекта myoman, но все команды grunt дают следующую ошибку. Любая идея, как обойти эту?Использование grunt на окнах

c:\wip\code\project\yo>grunt -v 
Initializing 
Command-line options: --verbose 

c:\wip\code\project\yo\node_modules\grunt\lib\grunt\file.js:372 
    return fs.existsSync(filepath); 
      ^
TypeError: Object #<Object> has no method 'existsSync' 
    at Object.exists (c:\wip\code\project\yo\node_modules\grunt\lib\grunt\fil 
e.js:372:13) 
    at Task.init (c:\wip\code\project\yo\node_modules\grunt\lib\grunt\task.js 
:417:31) 
    at Object.tasks (c:\wip\code\project\yo\node_modules\grunt\lib\grunt.js:1 
13:8) 
    at Object.cli (c:\wip\code\project\yo\node_modules\grunt\lib\grunt\cli.js 
:38:9) 
    at Object.<anonymous> (C:\Users\me\AppData\Roaming\npm\node_modules\ 
grunt-cli\bin\grunt:41:20) 
    at Module._compile (module.js:446:26) 
    at Object..js (module.js:464:10) 
    at Module.load (module.js:353:31) 
    at Function._load (module.js:311:12) 
    at Array.0 (module.js:484:10) 

ответ

2

Похоже, вы используете Node.js v0.6 (как fs.existsSync был перемещен в fs в v0.8).

Grunt совместим с node.js >= 0.8.

 Смежные вопросы

  • Нет связанных вопросов^_^