error: uncaughtException: Cannot find module '@koa/cors'
nitrocode opened this issue · 4 comments
nitrocode commented
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
mkozjak commented
Works for me on a mac, but doesn't on Raspbian. npm i kcors@2
works, for some reason. Weird.
krini commented
It also works for me on a mac.
fengmk2 commented
Already published https://www.npmjs.com/package/@koa/cors