【问题标题】:Cannot find module 'yargs' error while deploying node.js app to google cloud platform将 node.js 应用程序部署到谷歌云平台时找不到模块“yargs”错误
【发布时间】:2019-09-21 17:39:05
【问题描述】:

我正在尝试将我的 node.js 应用程序部署到 google cloud 并且我的 package.json 包含 yargs 作为依赖项。

当我将应用程序部署到谷歌云后,我在谷歌云平台日志中收到错误 can't find module yargs

我该如何解决上述问题?

【问题讨论】:

    标签: node.js google-cloud-platform yargs


    【解决方案1】:

    我也有这个问题。您需要做的就是通过

    在本地安装“yargs”
    npm init
    npm i yargs --save
    

    您可以查看完整指南here

    【讨论】:

      猜你喜欢
      • 2015-12-22
      • 2020-03-09
      • 1970-01-01
      • 2018-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-08
      相关资源
      最近更新 更多