我使用的是ubuntu服务器14.04.1LTS,我认为它是一台x32机器
当试图运行我的nodejs实例时,我得到一个错误
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version
请不要链接答案与上述问题在这里。问题不在于它没有加载。它只是没有安装。这里是我的package.json依赖关系:
"dependencie
I have created the following package.json
{
"name": "garima",
"description": "garima app",
"version": "0.0.1",
"private": true,
"dependencies": {
"mongodb": "*",
"mongoose": "*"
}
}
我正在尝试学习MEAN stack,我已经使用npm在我的PC上安装了Node、Express和Angular,我还安装了Mongo DB,现在我正在尝试安装Mongoose,但我无法安装它!我在命令行中得到以下错误!请给我推荐一种安装方法
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\nishanth>npm install mongoose
npm WARN peerDependencies The peer dependency
我正试着为一门mongodb大学课程做作业。他们给了我们一些文件,说明如下:
运行npm install mongodb,然后运行node app.js
出于某种原因,npm没有创建node_modules目录,但我没有看到任何构建错误:
mongo-uni/hw1-2$ npm install mongodb
npm WARN package.json path@0.4.9 path is also the name of a node core module.
npm http GET https://registry.npmjs.org/mongodb
npm http 304 http
我试着在一台arch linux计算机(裁剪盒)上安装mean.io堆栈。所以我安装了nodejs和mongodb软件包。
我用Git检索堆栈,安装了npm (很好),但随后:
在输入“咕噜”之后,我得到了这个错误:
[nodemon] v1.2.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
debugger listening on port 5858
{ [Error: Cannot find module