Frage

I installed coffeeScript and CoffeeLint in the following way:

# .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

Than I installed vim-coffee-script plugin with vundle. However I am not able to compile from Vim neither CoffeeLint works. This is .vimrc which I used for CoffeeScript. What did I do wrong?

War es hilfreich?

Lösung

Reading the manual pays off:

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

in your .vimrc might help.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top