Google App Engine - Node: Cannot find module 'firebase-admin'

前端 未结 3 1112
悲哀的现实
悲哀的现实 2021-02-05 13:06

First time deploying a GAE app here, I\'m trying to follow this tutorial: https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html (see node code secti

3条回答
  •  时光说笑
    2021-02-05 13:21

    I had a similar problem running gcloud app deploy

    Error: Cannot find module 'webpack-dev-server'
    at Function.Module._resolveFilename (module.js:469:15)
    

    I solved the issue moving the given dependency (wepack-dev-server) from devDependencies to dependencies in package.json.

    In case somebody else has the same problem I suggest to have look at your dependencies in package.json. dependencies are required to run, devDependencies only to develop, e.g.: unit tests, Coffeescript to Javascript transpilation, minification,

提交回复
热议问题