无法找到模块' streamsearch'

时间:2016-08-28 15:17:28

标签: javascript node.js

我已经使用package.json文件安装了我的快速应用程序,如下所示:

{
  "name": "Project_4_User_Login",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "node ./bin/www"
  },
  "dependencies": {
    "body-parser": "~1.15.1",
    "cookie-parser": "~1.4.3",
    "debug": "~2.2.0",
    "express": "~4.13.4",
    "pug": "*",
    "morgan": "~1.7.0",
    "serve-favicon": "~2.3.0",
    "mongodb": "*",
    "mongoose": "*",
    "connect-flash": "*",
    "express-validator": "*",
    "express-session": "*",
    "express-messages": "*",
    "passport": "*",
    "passport-local": "*",
    "passport-http": "*",
    "multer": "*"
  }
}

我确实在app.js文件中添加了一些中间件。当我第一次运行应用程序时使用" npm start"命令,它抛出一个错误'找不到模块' streamsearch''。但实际上,我并没有使用' streamsearch'。

之后,我去安装' streamsearch'并收到另一个错误。这次,它是“找不到模块./code' 任何人都可以帮我搞清楚吗?我真的很困惑。

0 个答案:

没有答案