Skip to content
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

How to install keystone-forgotten-password ? #6

Closed
sdadoun opened this issue Sep 27, 2017 · 3 comments
Closed

How to install keystone-forgotten-password ? #6

sdadoun opened this issue Sep 27, 2017 · 3 comments

Comments

@sdadoun
Copy link

sdadoun commented Sep 27, 2017

Hello,
I have difficulties to install keystone-forgotten-password.

I installed keystoneJS version 4.0.0-beta.5 with

$ npm install -g generator-keystone
$ yo keystone

and it is working well.

Then I install keystone-forgotten-password with :

$ cd keystone
$ npm install -g keystone-forgotten-password

which displayed :

npm WARN keystone-forgotten-password@1.4.0 requires a peer of express@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN keystone-forgotten-password@1.4.0 requires a peer of keystone@4.0.0-beta.5 but none is installed. You must install peer dependencies yourself.

+ keystone-forgotten-password@1.4.0
updated 2 packages in 3.667s

then in routes/index.js when I add :
const forgottenPasswordPlugin = require('keystone-forgotten-password');
and I run keystone :
$ node keystone
It displays this error :
Error: Cannot find module 'keystone-forgotten-password'

Do you have an idea what I did wrong ? Should I use github repository instead of npm ?

Thanks
Simon

@export-mike
Copy link
Contributor

You do not install globally,

npm install keystone-forgotten-password --save

@sdadoun
Copy link
Author

sdadoun commented Sep 30, 2017

Thanks it worked.

@export-mike
Copy link
Contributor

@JedWatson @Noviny @thejameskyle good to close I no longer have perms .

@Noviny Noviny closed this as completed Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants