[英]Error on installation with node.js
I have created the following package.json
{
"name": "garima",
"description": "garima app",
"version": "0.0.1",
"private": true,
"dependencies": {
"mongodb": "*",
"mongoose": "*"
}
}
I get the following error on running 运行时出现以下错误
npm install
npm安装
kerberos@0.0.7 install /home/admin/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos (node-gyp rebuild 2> builderror.log) ||
kerberos@0.0.7安装/ home / admin / node_modules / mongoose / node_modules / mongodb / node_modules / kerberos(node-gyp重建2> builderror.log)|| (exit 0)
(退出0)
I am trying to install MongoDb with node.js.I am new to node.js please suggest what changes have to be made to package.json. 我正在尝试使用node.js安装MongoDb。我是node.js的新手,请建议必须对package.json进行哪些更改。
Thanks. 谢谢。
Your package.json is fine, you could remove the "mongodb" part because that is a dependency from mongoose anyway but it doesn't hurt to have it in there either. 您的package.json很好,您可以删除“ mongodb”部分,因为无论如何这都是来自猫鼬的依赖项,但也可以将其包含在其中。
It fails on building the dependency "kerberos" ( https://github.com/christkv/kerberos ) 它无法建立依赖项“ kerberos”( https://github.com/christkv/kerberos )
Try to type in npm install kerberos
and post the output here. 尝试输入
npm install kerberos
并在此处发布输出。 If it's just showing something like node-gyp rebuild 2> builderror.log show us whatever is in the file "builderror.log". 如果仅显示诸如node-gyp rebuild 2> builderror.log之类的内容,请向我们显示文件“ builderror.log”中的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.