Coffee Script 2.0

How do I use Coffee Script 2.0 in my glitch? (https://www.npmjs.com/package/coffeescript)

Does the Glitch platform not support it, yet?


I tried changing my dependency in package.json like so: "coffee-script": "2.0.2"

But I got this error:

node v6.11.4, npm 3.10.10
Installing...
npm ERR! Linux 4.4.0-1039-aws
npm ERR! argv "/home/nvm/.nvm/versions/node/v6.11.4/bin/node" "/home/nvm/.nvm/versions/node/v6.11.4/bin/npm" "install" "--no-save"
npm ERR! node v6.11.4
npm ERR! npm  v3.10.10
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: coffee-script@2.0.2
npm ERR! notarget Valid install targets:
npm ERR! notarget 1.12.7, 1.12.6, 1.12.5, 1.12.4, 1.12.3, 1.12.2, 1.12.1, 1.12.0, 1.11.1, 1.11.0, 1.10.0, 1.9.3, 1.9.2, 1.9.1, 1.9.0, 1.8.0, 1.7.1, 1.7.0, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.0, 1.4.0, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.0, 1.1.3, 1.1.2, 1.1.1, 1.1.0, 1.0.1, 1.0.0, 0.9.6, 0.9.5, 0.9.4, 0.9.3, 0.9.2, 0.9.1, 0.9.0, 0.7.2, 0.7.1, 0.7.0

I actually wish to use Coffee Script 2’s support for async/await, but perhaps the underlying Node version doesn’t support them, anyways?..

Try "coffeescript": "^2.0.2", it looks like the package name changed at same point. You might also need to change your Node version as I did in that image. Not entirely sure on that point - don’t use much coffee script personally.

3 Likes

Thanks @shindakun!

I didn’t know you could modify the “engines” like that! I would have given up after getting Coffee Script 2.0 working