node.js - NPM 安装错误 (Package.JSON) 未更新

标签 node.js bash mongodb package.json

在我的终端中,假设我正在输入 npm 安装express mongoose bcrypt-nodejs morgan body 解析器

我收到此错误。

bson@0.2.19 install /Users/dan/nodeStuff/server-test/node_modules/mongoose/node_modules/mongodb/node_modules/bson (node-gyp rebuild 2> builderror.log) || (exit 0)

让我发疯的是我的 node_moduales 在我的目录中更新了,但没有更新的是 package.json 文件。任何帮助将不胜感激。

最佳答案

尝试使用--save标志

npm install express mongoose bcrypt-nodejs morgan body-parser --save

关于node.js - NPM 安装错误 (Package.JSON) 未更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28570590/

相关文章:

javascript - grunt 一个 Angular 项目,然后它错误为“找不到模块”

javascript - 为什么使用子字符串方法时应用程序挂起?

MongoDB 异常:WiredTigerIndex::insert:键太大而无法建立索引

javascript - Express.js : Does calling next(error) from a route handler call a global error handling middleware?

javascript - 如何将 EJS 模板转换为字符串?

linux - 如何在 Linux 网络服务器上以递归方式仅在名为 index.php 的文件中查找和替换?

java - 来自 cmdline 的 Junit - java.lang.ClassNotFoundException

bash - Easy Bash Cut 分隔符

MongoDB : array element projection with findOneAndUpdate doesn't work?

javascript - POST 请求中的测试和 stub 参数