Git Product home page Git Product logo

express-kerberos's People

Contributors

dependabot[bot] avatar noamokman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

express-kerberos's Issues

TypeError: kerberosModule.Kerberos is not a constructor

I'm sorry, I know some similars was already closed but I can't make it work...

var express = require('express');
var expressKerberos = require('express-kerberos').default;
// var {default: expressKerberos} = require('express-kerberos'); // I tried this too, without success
 
const app = express();
 
app.get('/', expressKerberos(), (req, res) => {
  res.send(`Hello ${req.auth.username}!`);
});

image

Any clue ?

Simple Kerberos failed to load the "kerberos" module

I tried to use the middleware as described, but got this error:

NestedError: Simple Kerberos failed to load the "kerberos" module
    at Object.<anonymous> (/opt/Dashboard-Express-Server/node_modules/express-kerberos/node_modules/simple-kerberos/lib/index.js:24:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/Dashboard-Express-Server/node_modules/express-kerberos/lib/index.js:20:23)
    at Module._compile (module.js:653:30)
Caused By: TypeError: kerberosModule.Kerberos is not a constructor
    at Object.<anonymous> (/opt/Dashboard-Express-Server/node_modules/express-kerberos/node_modules/simple-kerberos/lib/index.js:22:14)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/Dashboard-Express-Server/node_modules/express-kerberos/lib/index.js:20:23)
    at Module._compile (module.js:653:30)

Maybe some issue with the dependency on your other repository simple-kerberos?
Because this project still uses its old version? Just a thought....

Simple Kerberos failed to load the "kerberos" v3.0.0

NestedError: Simple Kerberos failed to load the "kerberos" module
at Object. (C:\USR\POC_LDAP\node_modules\simple-kerberos\src\index.js:12:9)
at Module._compile (module.js:653:30)
at Module._compile (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:91:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:96:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (C:\USR\POC_LDAP\node_modules\express-kerberos\src\index.js:2:1)
at Module._compile (module.js:653:30)
at Module._compile (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:91:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:96:7)
at Module.load (module.js:566:32)
Caused By: TypeError: kerberosModule.Kerberos is not a constructor
at Object. (C:\USR\POC_LDAP\node_modules\simple-kerberos\src\index.js:9:14)
at Module._compile (module.js:653:30)
at Module._compile (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:91:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:96:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (C:\USR\POC_LDAP\node_modules\express-kerberos\src\index.js:2:1)
at Module._compile (module.js:653:30)
at Module._compile (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:91:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\USR\poc_ldap\node_modules\pirates\lib\index.js:96:7)
at Module.load (module.js:566:32)

Simple Kerberos failed to load the "kerberos" module

image

What i did:

Linux

  • python v2.7
  • make
  • A proper C/C++ compiler toolchain, like GCC
  • Distribution-specific kerberos packages (e.g. krb5-dev on Ubuntu)

then type

npm install express-kerberos --unsafe-perm

and got this error now

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.