0

次の方法で 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-coffee-script プラグインを vundle でインストールしたよりも。ただし、Vim からコンパイルできず、CoffeeLint も動作しません。これは、CoffeeScript に使用した.vimrcです。私は何を間違えましたか?

4

1 に答える 1

4

マニュアルを読むと、次のメリットがあります。

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

あなたの.vimrc助けになるかもしれません。

于 2013-10-15T07:39:04.610 に答える