2013-10-15 92 views
0

我安装的CoffeeScript和CoffeeLint以下列方式:VIM咖啡脚本不起作用

# .bashrc 
export NODE_MODULES=/home/uqmlore1/apps/node_modules 

$ npm install --prefix /home/uqmlore1/apps/node_modules -g coffee-script 
$ coffee -v 
CoffeeScript version 1.6.3 

$ npm install --prefix /home/uqmlore1/apps/node_modules -g coffeelint 
$ coffeelint 
bash: coffeelint: command not found 
$ ls ~/apps/node_modules/lib/node_modules/coffeelint/bin 
coffeelint 

比我安装vim-coffee-script plugin与vundle。然而,我无法从Vim编译CoffeeLint的作品。这是我用于CoffeeScript的.vimrc。我做错了什么?

+1

你做错了什么是问这里,而不是插件的问题跟踪。而且很明显,coffeelint没有安装,所以如果您遵循的安装程序是推荐的安装程序,那么您也必须询问coffeelint的问题跟踪器。 – romainl

+0

谢谢,我发布在这里:https://github.com/kchmck/vim-coffee-script/issues/147,https://github.com/clutchski/coffeelint/issues/170 – user977828

回答

4

manual不负有心人:

let coffee_linter = '/home/uqmlore1/apps/node_modules/lib/node_modules/coffeelint/bin/coffeelint' 

.vimrc可能的帮助。

+0

谢谢你这是工作。 – user977828