把koa2项目移到阿里云etc centos7服务器上后koa-generic-session 报错 Cannot set property name

来源:7-10 nodejs链接redis的demo

慕莱坞5350593

2019-06-17

把koa2项目移到阿里云etc centos7服务器上后koa-generic-session 报错 Cannot set property name

xxx POST /api/user/login 500 17s -
server error TypeError: Cannot set property name of which has only a getter
at defaultErrorHanlder (/opt/www/blog-koa2/node_modules/koa-generic-session/lib/session.js:523:12)
at /opt/www/blog-koa2/node_modules/koa-generic-session/lib/session.js:193:9
at Generator.throw ()
at step (/opt/www/blog-koa2/node_modules/koa-generic-session/lib/session.js:3:191)
at /opt/www/blog-koa2/node_modules/koa-generic-session/lib/session.js:3:402
at process._tickCallback (internal/process/next_tick.js:68:7)

写回答

1回答

慕莱坞5350593

提问者

2019-06-17

已解决。。。。redis没有启动

1
0

Node.js+Express+Koa2+Nest.js 开发服务端

从入门到实战,一站式掌握 Node.js+Express+Koa2

4051 学习 · 2006 问题

查看课程