11

I am trying to deploy my node.js application to google cloud and my package.json includes the yargs as dependencies.

And when I deploy the app to google cloud and after that I am getting error can't find module yargs in google cloud platform logs.

How can I solve the above issue?

1 Answers1

8

i had this problem too. all you need to do is installing 'yargs' locally by

npm init
npm i yargs --save

you can see the complete guide here

sina
  • 2,103
  • 1
  • 19
  • 26