2015-03-13 252 views
1

我曾經使用我以前的電腦(已死)的地面,現在我嘗試在我的新電腦中使用它。問題是我使用它時沒有得到任何迴應。Grunt不會返回任何東西

更具體的,我已經到了Gruntfile光刻膠和我運行命令grunt watch的文件夾,但我沒有得到來自Grunt

我的命令行看起來像任何響應:

[email protected]:~/Documents/repositories/project/wp-content/themes/cours-de-musique/bower_components/bootstrap$ grunt watch 
[email protected]:~/Documents/repositories/project/wp-content/themes/cours-de-musique/bower_components/bootstrap$ 

另外,我已經試過了命令npm list --depth=0 | grep grunt-contrib-compass,我得到了以下結果:

npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! max depth reached: [email protected], required by [email protected] 
npm ERR! not ok code 0 

說明:以前的電腦使用的是同一個文件系統,並且工作正常,但是現在在新電腦中我有這個問題。你也應該知道我沒有碰過任何與這個項目相關的文件。

更新1

我自己也嘗試grunt --version又一次的結果是一樣的:

[email protected]:~/Documents/repositories/project/wp-content/themes/cours-de-musique/bower_components/bootstrap$ grunt --version 
[email protected]:~/Documents/repositories/project/wp-content/themes/cours-de-musique/bower_components/bootstrap$ 

回答

1

的問題就迎刃而解了:

溶液如下:

我打開文件/usr/local/bin/grunt,我更換了以下行

#!/usr/bin/env node 

下列要求:

#!/usr/bin/env nodejs