2014-10-17 21 views
8

我正在使用Yeoman。升級到優勝美地,任務grunt servergrunt build拋出此錯誤後:更新至優勝美地後,grunt-contrib-compass中出現此錯誤的原因是什麼?

/Users/rogerfuentes/Documents/Web/Kelios/test/node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261 
throw err; 
     ^
Error: spawn ENOENT 
    at errnoException (child_process.js:1001:11) 
    at Process.ChildProcess._handle.onexit (child_process.js:792:34) 

是什麼原因造成這個錯誤,以及如何能解決嗎?

+0

不幸的是我沒有答案,但我會用你的經驗,建議,我會等待安裝。 – fmquaglia 2014-10-18 00:55:05

回答

28

如果您在終端窗口運行羅盤,你會看到以下錯誤:

-bash: /usr/bin/compass: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

如果你去/System/Library/Frameworks/Ruby.framework,你會看到安裝已更新的Ruby版本爲2.0。這就是爲什麼運行指南針失敗的原因,因爲沒有紅寶石1.8了。

的解決辦法是在優勝美地重新安裝指南針運行:

xcode-select --install 
sudo gem update --system 
sudo gem install compass 
+0

這工作。非常感謝! – Wlada 2014-10-19 04:06:21

+0

完美! 。謝謝! – roger06 2014-10-20 00:37:04

+0

真棒!保存了我的一天,非常感謝。 +1 – sarbbottam 2014-11-05 19:47:46

相關問題