Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Our team makes a project with a Node.js server and use GitHub as source control. The problem is when I will run the server. I use next steps to test if the master will start the application.

none
git checkout master
git pull
npm update
node .\backend\server.js

The last comment gives me next error.

none
D:\***\node_modules\passport-oauth2\lib\strategy.js:82
  if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); }
                           ^

TypeError: OAuth2Strategy requires a clientID option
    at Strategy.OAuth2Strategy (D:\Documenten\WatchFriends\Web\node_modules\passport-oauth2\lib\strategy.js:82:34)
    at new Strategy (D:\Documenten\WatchFriends\Web\node_modules\passport-google-oauth20\lib\strategy.js:52:18)
    at module.exports.config (D:\Documenten\WatchFriends\Web\backend\data\passport.js:94:18)
    at Object.<anonymous> (D:\Documenten\WatchFriends\Web\backend\server.js:16:1)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Other team partners are also working on the same repository has done the same steps to test if the master will run. The wierd problem is that they haven't any problem. Also the configuration files that are ignore by the .gitignore file are equal.

Question: What is the problem why the code doesn't run on my computer and but will run on other computers?

Here is some information about our project:



What I have tried:

I've tried to delete and reclone the project from GitHub, reinstall the node modules and added the ignored files. But it doesn't solve the error. I'm woking with node version 6.9.3 and git version 2.10.2.windows.1.

Posted
Updated 4-Jan-17 0:09am
v3
Comments
Jochen Arndt 4-Jan-17 6:33am    
Google for "OAuth2Strategy requires a clientID option"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900