Giter Site home page Giter Site logo

Failed to build about winston-mongodb HOT 7 CLOSED

winstonjs avatar winstonjs commented on September 23, 2024
Failed to build

from winston-mongodb.

Comments (7)

Redsandro avatar Redsandro commented on September 23, 2024

Solution: sudo apt-get install libkrb5-dev

This is the first time I needed some linux package as a dependency. Is there some way to track and record these? As in, how can I make npm NOT break an otherwise running installation when attempting to update packages, when certain linux dependencies aren't met?

from winston-mongodb.

phillipwei avatar phillipwei commented on September 23, 2024

I experienced this same build failure, but on windows.

from winston-mongodb.

yurijmikhalevich avatar yurijmikhalevich commented on September 23, 2024

@Redsandro keep in mind that kerberos is MongoDB itself dependency, not winston-mongdb. If you have any questions regarding this it's better to ask them in the node-mongodb-native repo (more exactly, in mongodb-core https://www.npmjs.com/package/mongodb-core).

from winston-mongodb.

Redsandro avatar Redsandro commented on September 23, 2024

Good to know. This is interesting, because I already have mongodb-native running with my app, without said package installed. Perhaps it was introduced in a semi-recent release?

from winston-mongodb.

yurijmikhalevich avatar yurijmikhalevich commented on September 23, 2024

I'm not sure. I will investigate this today. Anyway, Kerberos mentioned as optional dependency of mongodb and you can prevent it from installing by executing npm with --no-optional argument (or something similar, you can look it up in the npm documentation). Maybe there is a way to specify this argument in package.json.

On Oct 25, 2015, at 4:54 PM, Sander AKA Redsandro [email protected] wrote:

Good to know. This is interesting, because I already have mongodb-native running with my app, without said package installed. Perhaps it was introduced in a semi-recent release?


Reply to this email directly or view it on GitHub.

from winston-mongodb.

Redsandro avatar Redsandro commented on September 23, 2024

I didn't know about the --no-optional.

Maybe there is a way to specify this argument in package.json

That would be a solution. A quick glance doesn't look like it. Surely this can be an issue for other packages as well, so it would make sense if there's some kind of option or safeguard for this.

Interesting.

I'm not sure why node-mongodb (optionally) uses kerberos. I authenticate using authenticate() on a connection just fine. Perhaps kerberos is a non-plaintext alternative.

from winston-mongodb.

yurijmikhalevich avatar yurijmikhalevich commented on September 23, 2024

Perhaps kerberos is a non-plaintext alternative

This is pretty close.
According to wikipedia, kerberos /ˈkərbərəs/ is a computer network authentication protocol which works on the basis of 'tickets' to allow nodes communicating over a non-secure network to prove their identity to one another in a secure manner.

A quick glance doesn't look like it

Same for me.

What if you are passing this option to npm install itself?

from winston-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.