Created
July 24, 2017 10:08
-
-
Save WillieYang/7942a189a59bb67c2e72d45e220bc711 to your computer and use it in GitHub Desktop.
when deploying the latest version to the heroku, it says that passport cannot find...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2017-07-23T23:24:22.178525+00:00 app[web.1]: module.js:472 | |
| 2017-07-23T23:24:22.178541+00:00 app[web.1]: throw err; | |
| 2017-07-23T23:24:22.178542+00:00 app[web.1]: | |
| 2017-07-23T23:24:22.178544+00:00 app[web.1]: at Function.Module._resolveFilename (module.js:470:15) | |
| 2017-07-23T23:24:22.178545+00:00 app[web.1]: at Function.Module._load (module.js:418:25) | |
| 2017-07-23T23:24:22.178545+00:00 app[web.1]: at Module.require (module.js:498:17) | |
| 2017-07-23T23:24:22.178542+00:00 app[web.1]: ^ | |
| 2017-07-23T23:24:22.178546+00:00 app[web.1]: at require (internal/module.js:20:19) | |
| 2017-07-23T23:24:22.178543+00:00 app[web.1]: Error: Cannot find module 'passport' | |
| 2017-07-23T23:24:22.178547+00:00 app[web.1]: at Module._compile (module.js:571:32) | |
| 2017-07-23T23:24:22.178548+00:00 app[web.1]: at Object.Module._extensions..js (module.js:580:10) | |
| 2017-07-23T23:24:22.178547+00:00 app[web.1]: at Object.<anonymous> (/app/app.js:8:16) | |
| 2017-07-23T23:24:22.178549+00:00 app[web.1]: at tryModuleLoad (module.js:447:12) | |
| // the reason why this problem existes is that the npm and node version in package.json file are not the same as what I have | |
| // in my local machine, I have upgraded my node version to 7.10.1, but the version of my npm is downgraded to 4.2.0(previous | |
| // npm 5.0.3, it is actually weird...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment