These are chat archives for jescalan/roots

17th
Mar 2017
Ramanathan Kashinathan Iyer
@iyerrama25
Mar 17 2017 13:01

Hi there,
Am referring to this doc: http://roots.cx/docs/js_api and getting an error while running the roots instance:
npm WARN api-project-3 No license field.
progress: dependencies finished installing
/project-path/node_modules/when/lib/decorators/unhandledRejection.js:80
throw e;
^

Error: Use CoffeeScript.register() or require the coffee-script/register module to require .coffee files.
at Object.(anonymous function).base.(anonymous function) [as .coffee] (/project-path/node_modules/roots/node_modules/coffee-script/lib/coffee-script/coffee-script.js:242:15)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Config.load_config (/project-path/node_modules/roots/lib/config.js:117:14)
at new Config (/project-path/node_modules/roots/lib/config.js:71:19)
at new Roots (/project-path/node_modules/roots/lib/index.js:43:21)
at /project-path/node_modules/roots/lib/api/new.js:98:28
at tryCatchReject (/project-path/node_modules/when/lib/makePromise.js:845:30)
at runContinuation1 (/project-path/node_modules/when/lib/makePromise.js:804:4)
at Fulfilled.when (/project-path/node_modules/when/lib/makePromise.js:592:4)
at Pending.run (/project-path/node_modules/when/lib/makePromise.js:483:13)
at Scheduler._drain (/project-path/node_modules/when/lib/Scheduler.js:62:19)
at Scheduler.drain (/project-path/node_modules/when/lib/Scheduler.js:27:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Jeff Escalante
@jescalan
Mar 17 2017 14:14
The error message tells you how to fix!
😁