【问题标题】:Ionic './ber/index' module not found找不到离子'./ber/index'模块
【发布时间】:2015-07-08 10:01:42
【问题描述】:

我正在构建一个 Ionic 应用程序并想为 iOS 构建它。它没有用。我收到一个找不到模块的错误。过了一会儿,我通过使用 npm install MODULENAME -g 安装几个模块来解决这个问题

现在我收到以下错误:

Error: Cannot find module './ber/index'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js:6:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

但我不认为./ber/index 是一个模块。这就是 npm 所说的。我将如何解决这个问题?

另外,为什么我的所有 npm 模块都不见了?有没有办法解决这个问题?现在我使用nmp install MODULENAME -g 手动安装但它永远不会停止...

【问题讨论】:

    标签: node.js npm ionic-framework


    【解决方案1】:

    从 node_modules 文件夹中删除所有不需要的模块。我有同样的错误,我只是删除了所有不需要的模块,然后我的代码运行良好。

    【讨论】:

      猜你喜欢
      • 2016-02-23
      • 2020-02-28
      • 2018-10-22
      • 1970-01-01
      • 1970-01-01
      • 2017-09-20
      • 1970-01-01
      • 2018-05-25
      • 2018-03-19
      相关资源
      最近更新 更多