2013-10-15 91 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