Comments (13)
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.
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.
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.
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.
i am looking forward a guidance from your end.
from hapi-oauth2orize.
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.
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.
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.
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.
version 1.4.0 is not even listed here at http://semver.npmjs.com/
from hapi-oauth2orize.
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.
please publish version 1.4.0 otherwise it will make confusion for new user of hapi like mine.
from hapi-oauth2orize.
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)
- Add some documentation HOT 2
- different signatures in oauth.authorize HOT 2
- Hapi 12+ and yar bug fix HOT 5
- authorize endpoint: Uncaught error: reply interface called twice HOT 3
- Help needed regarding implementation of resource owner password grant.
- oauth2orize is not working with hapijs HOT 1
- Hapi 17 HOT 1
- Hapi 8 and updated docs HOT 8
- Upgrade to hapi8 HOT 1
- Update docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapi-oauth2orize.