大多数中间件(如会话)不再与Express捆绑在一起,必须单独安装

时间:2017-08-24 04:39:01

标签: node.js session express npm

每当我执行此操作时,我都会尝试执行npm run dev,我收到此错误

Most middleware (like session) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.

我正在寻找类似的问题并找到了这篇文章。 Node js Error: Most middleware (like session) is no longer bundled with Express and must be installed separately

我做了npm install connectnpm install express-session,但我仍然遇到同样的错误。

节点版本:v6.10.3
NPM版本:v5.4.0

0 个答案:

没有答案