码迷,mamicode.com
首页 > 其他好文 > 详细

atom-grunt-runner的配置

时间:2015-05-14 14:33:03      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

在用Atom写项目,同时用到grunt做自动化,当然就想到在atom直接调用grunt,有一个现成的atom plugin叫grunt-runner,安装后,需要配置一下,而且对于mac最新的OS X 10.10还需要特别注意:

Find where grunt is in the Terminal:

$ which grunt
/usr/local/bin/grunt
Add /usr/local/bin to Grunt Paths in the grunt-runner settings.

If no path is returned after the which, you have to install Grunt globally through npm

Troubleshooting For Yosemite (OS X 10.10)

If not launched from command-line Atom currently has a bug where it‘s unable to loads OS X‘s PATH due to a change in the way Yosemite functions.

You may receive the following error:

Uncaught BufferedProcessError: Failed to spawn command grunt. Make sure grunt is installed and on your PATH

One workaround is to add the following line:

process.env.PATH = [“/usr/local/bin”, process.env.PATH].join(“:“)

To the file:

~/.atom/init.coffee

atom-grunt-runner的配置

标签:

原文地址:http://my.oschina.net/fwj/blog/414732

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!