节点应用程序没有在我的PC上运行,但与我团队的其他PC运行良好(使用git) [英] Node app is not running on my PC but running fine with other PC of my team (using git)

查看:112
本文介绍了节点应用程序没有在我的PC上运行,但与我团队的其他PC运行良好(使用git)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队使用Node.js服务器创建项目,并使用Gi​​tHub作为源代码控制。问题是我将运行服务器。我使用后续步骤测试主人是否会启动应用程序。

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.

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

最后一条评论给了我下一个错误。

The last comment gives me next error.

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

其他团队合作伙伴也在同一个存储库上做同样的工作测试主服务器是否运行的步骤。奇怪的问题是他们没有任何问题。此外, .gitignore 文件忽略的配置文件也是相同的。

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?

以下是有关我们项目的一些信息:

这篇关于节点应用程序没有在我的PC上运行,但与我团队的其他PC运行良好(使用git)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆