我以以下方式安装了coffeeScript和CoffeeLint:
# .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-咖啡-脚本插件上安装了vundle。但是,我无法从Vim编译,CoffeeLint都不起作用。这是.vimrc,我用在CoffeeScript上。我做错什么了?
发布于 2013-10-15 07:39:04
阅读手册是有回报的:
let coffee_linter = '/home/uqmlore1/apps/node_modules/lib/node_modules/coffeelint/bin/coffeelint'在你的.vimrc里可能会有帮助。
https://stackoverflow.com/questions/19373930
复制相似问题