Ask coding questions

← Back to all posts
CoffeeScript not compiling
IntellectualGuy (822)

I'm installing CoffeeScript with NPM


npm i --save-dev coffeescript

but when I try to run a .coffee file specifically this

coffee -c public/cs/

it says

bash: coffee: command not found

How do I fix this?

CodeMaster007 (109)

I think it’s something set in the language preferences. Copy the code 3 times and use these languages. The first is “node.js”. The second is “html, css, js”. The third is “JavaScript. So basically, run the same code but in different languages.

IntellectualGuy (822)

@CodeMaster007 Still doesn't work and btw making a JavaScript repl just makes a node.js repl.