Node.js   发布时间:2022-04-24  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了gruntjs – 更新到Yosemite后,grunt-contrib-compass中出现此错误的原因是什么?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用Yeoman.升级到Yosemite后,任务grunt server和grunt build会抛出此错误

/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)

导致此错误的原因是什么,以及如何修复?

解决方法

如果在终端窗口上运行指南针,您将看到以下错误

如果您转到/System/Library/Frameworks/Ruby.framework,您将看到安装已将Ruby版本更新为2.0.这就是为什么运行指南针失败,因为没有红宝石1.8了.

解决方案是通过运行以下命令在Yosemite上重新安装指南针:

xcode-SELEct --install
sudo gem update --system
sudo gem install compass

大佬总结

以上是大佬教程为你收集整理的gruntjs – 更新到Yosemite后,grunt-contrib-compass中出现此错误的原因是什么?全部内容,希望文章能够帮你解决gruntjs – 更新到Yosemite后,grunt-contrib-compass中出现此错误的原因是什么?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。