koajs / cors

Cross-Origin Resource Sharing(CORS) for koa
Other
732 stars 80 forks source link

error: uncaughtException: Cannot find module '@koa/cors' #46

Closed nitrocode closed 6 years ago

nitrocode commented 6 years ago

node throws this exception

error: uncaughtException: Cannot find module '@koa/cors' date=Mon Nov 20 2017 08:02:33

when requiring this module

const cors = require('@koa/cors');

Is this module still updated?

rapzo commented 6 years ago

I think that @koa never got done. There's an open issue #35

But yeah, it has been silent for a while...

mkozjak commented 6 years ago

Works for me on a mac, but doesn't on Raspbian. npm i kcors@2 works, for some reason. Weird.

krini commented 6 years ago

It also works for me on a mac.

fengmk2 commented 6 years ago

Already published https://www.npmjs.com/package/@koa/cors