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

login example: "Cannot find module passport-local" #17

Closed
morganherlocker opened this issue Aug 20, 2013 · 2 comments
Closed

login example: "Cannot find module passport-local" #17

morganherlocker opened this issue Aug 20, 2013 · 2 comments

Comments

@morganherlocker
Copy link

I receive "cannot find module passport-local" after doing the following:

git clone https://github.com/saintedlama/passport-local-mongoose.git
cd ./passport-local-mongoose/examples/login/
npm install
node app

I then try to explicitly do a "npm install passport-local", which succeeds, but still get the error. Am I missing something here?

@poindextrose
Copy link

I was getting the same error. Looking in models/account.js lead to the answer. You need to install passport-local in the root of the git repo

git clone https://github.com/saintedlama/passport-local-mongoose.git
cd passport-local-mongoose
npm install passport-local
cd examples/login/
npm install
node app

@saintedlama
Copy link
Owner

Now passport-local-mongoose package from npm repo is referenced in examples - should be now be quite stand alone

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