【问题标题】:Cordova: Cannot find module 'uuid'科尔多瓦:找不到模块 'uuid'
【发布时间】:2018-06-17 23:52:51
【问题描述】:

每次我尝试运行任何 cordova 命令时都会收到此错误:

$ cordova build --release android
Android Studio project detected
(node:26671) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module 'uuid'
(node:26671) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我正在使用 Node v8 和 NPM v5,尝试了不同的 Node/NPM 版本,但总是得到相同的错误。

【问题讨论】:

    标签: node.js cordova npm


    【解决方案1】:

    我最近在我的项目中遇到了这个问题,我们不得不使用 Cordova Micro VPN 插件来包装我们的 Cordova 应用程序。下面的命令解决了我的问题。

    npm install uuid
    

    如果有帮助,请告诉我。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多