-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install Mongoose on Windows Server 2008 R2 SP1 #2362
Comments
Hmm looks like install of the underlying bson module failed. Its odd though, because the bson module, in theory, falls back to a JS-only implementation if the C++ extension fails to compile. The kerberos failure is not really a problem (unless you want to use Kerberos SSPI with MongoDB that is). Can you tell me which version of node and npm you're using, and what version of mongoose you're trying to install? |
Sure. Here are the stats Node: 0.10.32 Let me know if any other details are required. |
@vkarpov15; Any workaround till the bug is fixed in the next release? |
Hmmm it looks like the error is actually in
|
No responses for 3 weeks and looks like this is an error in another module. Closing. |
I have the exact same problem only difference is I'm not doing anything with mongoskin When I run 'node server.js' this gets returned: module.js:340 Any help would be really appreciated thanks. |
Did your |
It didn't say, all I get is |
Try wiping out your |
Tried doing that it runs and gets stuck showing this: |
Ok so the kerberos library's what's hanging up. Try doing |
Hmmm do you have python and visual studio installed on this machine?
As suggested here |
I have python installed but not visual studio, installing that right now. Will try after that and let you know how it goes. Thanks. |
Tried running the command with visual studio installed and I get a message saying the syntax is incorrect. |
Which version of VS? |
Visual studio community 2013 |
Can you show me the error message output? |
Hmm looks like you're passing an incorrect visual studio syntax. Try just running |
Both commands worked fine, but |
I faced similar issues today. After a lot of Google searches it worked with following way
Issues was:
And it worked. But still it is the first node module which I couldn't install with a single command. I had to waste nearly 2 hour in installing it. I am not happy with it. I still have questions like:
Why can't I simply install it like a just one another npm module ? |
First, you can install mongoose without the node-gyp dependencies at all. You just won't get the C++ bson parser, you'll get the JavaScript BSON parser. In theory, if you install mongoose without python or VS, you'll just get a js-bson warning when your application starts. Re: 1 and 2, the python and VS dependencies come via the mongodb C++ bson parser and kerberos auth module. These are implemented as nodejs native add-ons, which need to be compiled via https://github.com/tootallnate/node-gyp, which wraps the V8 build tool 'gyp', which requires python and VS on Windows. Trust me, I dislike this dependency as much as you do, but there's a good reason for it. The reason is that the C++ bson parser has marginally less memory overhead and more predictable performance than the JavaScript implementation, and because AFAIK you can't really implement Kerberos auth on windows without being able to call secur32.dll directly. We'd like to figure out a way to close the gap on bson parser performance, but for now you just get a fallback to the JavaScript bson implementation. |
I don't see any real warnings above, looks like a normal npm install. If you upgrade to latest mongoose you shouldn't even see the messages about bson-ext. |
it looks like normal but it is not included in my dependencies after installation and then it gives me an error when i try to interact with mongodb! ?? so frustrating i am trying to fix this since two days now, hey about visual studio can you tell me what to do ? i dont really use that i use visual studio code. |
What's the error? And you shouldn't need visual studio at all unless you care about integrating mongodb into your kerberos cluster. |
hey it's freaking worked i just turned my laptop on and it worked ?? |
hey man i figured this out. app.use(multer({dest:'./public/images/uploads/'}).single('photo')); |
Glad you figured it out 🍻 |
When tried
npm install
on Windows Server 2008 R2 SP1, it gives the following messagesC:\Users\someFolder>npm install mongoose-
npm WARN optional dep failed, continuing kerberos@0.0.3
npm WARN optional dep failed, continuing kerberos@0.0.3
mongoose@3.8.8 node_modules\mongoose
├── regexp-clone@0.0.1
├── sliced@0.0.5
├── muri@0.3.1
├── hooks@0.2.1
├── mpath@0.1.1
├── mpromise@0.4.3
├── ms@0.1.0
├── mquery@0.5.3 (debug@0.7.4)
└── mongodb@1.3.23
When I run the app, I receive the following error
C:\Users\Somefolder>node app.js
module.js:340
throw err;
^
Error: Cannot find module 'bson'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\Users\Somefolder\node_mod
ules\agenda\node_modules\mongoskin\node_modules\mongodb\lib\mongodb\collection.j
s:10:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
The text was updated successfully, but these errors were encountered: