Giter Site home page Giter Site logo

Comments (13)

devinivy avatar devinivy commented on July 19, 2024

The error you're getting is coming from hapi, and it says that your plugin registrations (the first argument to server.register()) are being written incorrectly. Are you registering other plugins than hapi-oauth2orize? Can you post the registration code that's throwing the error?

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

i registered other plugin like joi,gulp,basic-auth. Right now i am registering this one with following code.
server.register(require('hapi-oauth2orize'), function (err) {
console.log(err);
});

when i installed hapi-oauth2orize, i got following error.
npm WARN EPEERINVALID [email protected] requires a peer of hapi@^7.x.x but none was installed.

from hapi-oauth2orize.

devinivy avatar devinivy commented on July 19, 2024

This means that hapi-oauth2orize v1.3 requires use of hapi v7, and you're using some other version. Try using hapi-oauth2orize v1.4, which should work with hapi v8+.

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

i am using hapi 13.0.0. when i installed hapi-oauth2orize, it installed hapi-oauth2orize v 1.3.0. do you have v 1.4?

when i am trying this command: sudo npm install [email protected] --save

getting following error.

npm ERR! No compatible version found: [email protected]
npm ERR! Valid install targets:
npm ERR! 1.3.0, 1.2.1, 1.2.0, 1.1.0, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.2

can you please guide me?

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

i am looking forward a guidance from your end.

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

something weird thing i noticed when checked hapi-oauth2orize source code under node_modules folder.
i am running this command to install: sudo npm install hapi-oauth2orize --save

i found (v 1.3.0) that index.js and package.js are different than index.js and package.json from (https://github.com/blinkmobile/hapi-oauth2orize v:1.4.0).

can anyone please tell me what i need to do to install this updated plugin?

from hapi-oauth2orize.

jokeyrhyme avatar jokeyrhyme commented on July 19, 2024

Compare the versions in our package.json, to the versions of other packages in your project's package.json. It would seem that there is a version conflict preventing the latest from being installed by npm.

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

boom was only conflicting package. I uninstall that. still npm getting old version. For working purpose, i manually replaced my(node_modules/hapi-oauth2orize) index.js and package.json file from this repository.

from hapi-oauth2orize.

jokeyrhyme avatar jokeyrhyme commented on July 19, 2024

Try using the SemVer calculator for NPM, and double-checking to see if your version strings actually mean what you think they mean: http://semver.npmjs.com/

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

version 1.4.0 is not even listed here at http://semver.npmjs.com/

from hapi-oauth2orize.

devinivy avatar devinivy commented on July 19, 2024

Ah, you're right! 1.4.0 should be tagged and published if everything seems in order... I realize it's not ideal, but in the meantime you could depend on the latest commit to this repo.

from hapi-oauth2orize.

lutfor3737 avatar lutfor3737 commented on July 19, 2024

please publish version 1.4.0 otherwise it will make confusion for new user of hapi like mine.

from hapi-oauth2orize.

pabshazon avatar pabshazon commented on July 19, 2024

I suggest you remove the package and reinstall it from the repo:

npm remove hapi-oauth2orize
npm install --save https://github.com/blinkmobile/hapi-oauth2orize.git

from hapi-oauth2orize.

Related Issues (11)

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.