title: Google App Engine - Node: Cannot find module 'firebase-admin'
body: <p>First time deploying a GAE app here, I'm trying to follow this tutorial: <a href="https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html" rel="noreferrer">https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html</a> (see node code section).</p>
  
  <p>I ran </p>
  
  <pre><code>npm install firebase-admin --save
  npm install request --save
  </code></pre>
  
  <p>on my machine, the package.json is here, but when I use <code>gcloud app deploy</code>, I get these logs when opening the app on my browser:</p>
  
  <pre><code>2017-02-10 09:35:02 default[20170210t103151]  module.js:471
  2017-02-10 09:35:02 default[20170210t103151]      throw err;
  2017-02-10 09:35:02 default[20170210t103151]      ^
  2017-02-10 09:35:02 default[20170210t103151]
  2017-02-10 09:35:02 default[20170210t103151]  Error: Cannot find module 'firebase-admin'
  2017-02-10 09:35:02 default[20170210t103151]      at Function.Module._resolveFilename (module.js:469:15)
  2017-02-10 09:35:02 default[20170210t103151]      at Function.Module._load (module.js:417:25)
  2017-02-10 09:35:02 default[20170210t103151]      at Module.require (module.js:497:17)
  2017-02-10 09:35:02 default[20170210t103151]      at require (internal/module.js:20:19)
  2017-02-10 09:35:02 default[20170210t103151]      at Object.&lt;anonymous&gt; (/app/server.js:1:78)
  2017-02-10 09:35:02 default[20170210t103151]      at Module._compile (module.js:570:32)
  2017-02-10 09:35:02 default[20170210t103151]      at Object.Module._extensions..js (module.js:579:10)
  2017-02-10 09:35:02 default[20170210t103151]      at Module.load (module.js:487:32)
  2017-02-10 09:35:02 default[20170210t103151]      at tryModuleLoad (module.js:446:12)
  2017-02-10 09:35:02 default[20170210t103151]      at Function.Module._load (module.js:438:3)
  2017-02-10 09:35:07 default[20170210t103151]  module.js:471
  2017-02-10 09:35:07 default[20170210t103151]      throw err;
  2017-02-10 09:35:07 default[20170210t103151]      ^
  2017-02-10 09:35:07 default[20170210t103151]
  2017-02-10 09:35:07 default[20170210t103151]  Error: Cannot find module 'firebase-admin'
  2017-02-10 09:35:07 default[20170210t103151]      at Function.Module._resolveFilename (module.js:469:15)
  2017-02-10 09:35:07 default[20170210t103151]      at Function.Module._load (module.js:417:25)
  2017-02-10 09:35:07 default[20170210t103151]      at Module.require (module.js:497:17)
  2017-02-10 09:35:07 default[20170210t103151]      at require (internal/module.js:20:19)
  2017-02-10 09:35:07 default[20170210t103151]      at Object.&lt;anonymous&gt; (/app/server.js:1:78)
  2017-02-10 09:35:07 default[20170210t103151]      at Module._compile (module.js:570:32)
  2017-02-10 09:35:07 default[20170210t103151]      at Object.Module._extensions..js (module.js:579:10)
  2017-02-10 09:35:07 default[20170210t103151]      at Module.load (module.js:487:32)
  2017-02-10 09:35:07 default[20170210t103151]      at tryModuleLoad (module.js:446:12)
  2017-02-10 09:35:07 default[20170210t103151]      at Function.Module._load (module.js:438:3)
  2017-02-10 09:43:58 default[20170210t104151]  module.js:471
  2017-02-10 09:43:58 default[20170210t104151]      throw err;
  2017-02-10 09:43:58 default[20170210t104151]      ^
  2017-02-10 09:43:58 default[20170210t104151]
  2017-02-10 09:43:58 default[20170210t104151]  Error: Cannot find module 'serviceAccountKey.json'
  2017-02-10 09:43:58 default[20170210t104151]      at Function.Module._resolveFilename (module.js:469:15)
  2017-02-10 09:43:58 default[20170210t104151]      at Function.Module._load (module.js:417:25)
  2017-02-10 09:43:58 default[20170210t104151]      at Module.require (module.js:497:17)
  2017-02-10 09:43:58 default[20170210t104151]      at require (internal/module.js:20:19)
  2017-02-10 09:43:58 default[20170210t104151]      at Object.&lt;anonymous&gt; (/app/server.js:7:22)
  2017-02-10 09:43:58 default[20170210t104151]      at Module._compile (module.js:570:32)
  2017-02-10 09:43:58 default[20170210t104151]      at Object.Module._extensions..js (module.js:579:10)
  2017-02-10 09:43:58 default[20170210t104151]      at Module.load (module.js:487:32)
  2017-02-10 09:43:58 default[20170210t104151]      at tryModuleLoad (module.js:446:12)
  2017-02-10 09:43:58 default[20170210t104151]      at Function.Module._load (module.js:438:3)
  2017-02-10 09:44:10 default[20170210t104151]  module.js:471
  2017-02-10 09:44:10 default[20170210t104151]      throw err;
  2017-02-10 09:44:10 default[20170210t104151]      ^
  2017-02-10 09:44:10 default[20170210t104151]
  2017-02-10 09:44:10 default[20170210t104151]  Error: Cannot find module 'serviceAccountKey.json'
  2017-02-10 09:44:10 default[20170210t104151]      at Function.Module._resolveFilename (module.js:469:15)
  2017-02-10 09:44:10 default[20170210t104151]      at Function.Module._load (module.js:417:25)
  2017-02-10 09:44:10 default[20170210t104151]      at Module.require (module.js:497:17)
  2017-02-10 09:44:10 default[20170210t104151]      at require (internal/module.js:20:19)
  2017-02-10 09:44:10 default[20170210t104151]      at Object.&lt;anonymous&gt; (/app/server.js:7:22)
  2017-02-10 09:44:10 default[20170210t104151]      at Module._compile (module.js:570:32)
  2017-02-10 09:44:10 default[20170210t104151]      at Object.Module._extensions..js (module.js:579:10)
  2017-02-10 09:44:10 default[20170210t104151]      at Module.load (module.js:487:32)
  2017-02-10 09:44:10 default[20170210t104151]      at tryModuleLoad (module.js:446:12)
  2017-02-10 09:44:10 default[20170210t104151]      at Function.Module._load (module.js:438:3)
  2017-02-10 16:20:02 default[20170210t124920]  Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "connect ETIMEDOUT 74.125.202.84:443".
  2017-02-10 16:20:02 default[20170210t124920]      at /app/node_modules/firebase-admin/lib/firebase-app.js:74:23
  2017-02-10 16:20:02 default[20170210t124920]      at process._tickCallback (internal/process/next_tick.js:103:7)
  </code></pre>
  
  <p>How do I fix this ??</p>