Sublime Forum

Problems compiling coffeescript on Windows 7

#1

Hi,

I have installed node.js from the website, and run npm install -g coffee-script on the command line to install coffee script globally.

However, when I come to compiling test.coffee, I having real problems - hope you can help!

Node.exe sits in the C:\Program Files\nodejs directory

Coffee.cmd is in C:\Users\This Computer Name\AppData\Roaming\npm

Coffeescript itself is in C:\Users\This Computer Name\AppData\Roaming\Sublime Text 2\Packages

I’ve tried countless permutations for the path in CoffeeScript.sublime-build, for example using “path”:“C:\Users\This Computer Name\AppData\Roaming\npm\coffee” - generates this error message:

[Error 2] The system cannot find the file specified
[cmd: [u’coffee.cmd’, u’-c’, u’C:\\Users\\This Computer Name\\AppData\\Roaming\\Sublime Text 2\\Packages\\CoffeeScript\\CoffeeScript.sublime-build’]]
[dir: C:\Users\This Computer Name\AppData\Roaming\Sublime Text 2\Packages\CoffeeScript]
[path: C:\Users\This Computer Name\AppData\Roaming\npm\coffee]
[Finished]

Can you help?

Many thanks

0 Likes

#2

C:\Users\This Computer Name\AppData\Roaming\npm is the correct path that is needed. This is my CoffeeScript.sublime-build

[code]{
“cmd”: “coffee”, “-m”, “-c”, “$file” ],
“file_regex”: “^(…?):([0-9]):?([0-9]*)”,
“selector”: “source.coffee, source.litcoffee, source.coffee.md”,

"windows":
{
	"shell": true
}

}
[/code]

0 Likes