jashkenas/coffee-script — Issue #2175: npm link with cs binary script
Author: pgherveou
Created: 2012-03-05 08:28:09+00:00
State: open

Hello, there
I can't get get coffe binary script to resolve npm installed modules
I put up a small project to demonstrate that https://github.com/pgherveou/cs_link_test

basically I can do npm link from the project and get this binary script to run globally

```javascript

#!/usr/bin/env node
var moment = require('moment');

console.log(moment().toString());
```

but the same won't work for a coffee binary

```javascript
#!/usr/bin/env coffee

moment = require 'moment'
console.log moment().toString()

```

I am not sure this is a bug, but one of you surely can tell me why !