`ember install emberfire`失败了,使用Node 6.2.2是ember-cli-emberfire更好的路线吗?

时间:2016-08-02 15:29:29

标签: node.js ember.js firebase ember-cli emberfire

找不到模块' q'还有更多...

当我在现有的Ember应用中运行ember install emberfire时,我得到Cannot find module 'q'

我搜索了该问题,尝试了npm cache cleannpm install q

现在,ember install emberfire引发了Cannot find module '../function/makeIterator_',我不愿意继续前进。

然而,在npm-embercli-emberfire,建议是通过Bower安装npm install --save-dev ember-cli-emberfire - 引用:

  1. 此回购列表将emberFire列为凉亭依赖
  2. 它运行bower install作为npm postinstall脚本
  3. 它导出一个包含firebase和emberFire库的树
  4. 节点6.2.2和ember-cli的播放效果还不错吗?

    由于当我试图专注于Ember(tutorial)应用程序时,npm和Node的阴谋成为一个令人恼火的谜团,我想知道:

    • 运行ember install emberfire的方式有何不同,如果在运行npm-recommended命令之前运行它是个问题?
    • 如果可以使用节点6.2.2运行ember-cli - 如果没有,建议?

    我的设置

    • OS X 10.11.6(OS X更新后只需要chown -R usr / local。)
    • 节点6.2.2(显然"目前尚未针对Ember CLI进行测试,可能会导致意外行为。")
    • Ember:1.13.15
    • ember-cli:1.13.15
    • ember-data:2.7.0
    • node:6.2.2
    • npm:2.14.10
    • emberfire:2.0.1
    • ember-cli-emberfire:0.0.1

    完整的错误读数:

    $ ember install emberfire
    version: 1.13.15
    Installed packages for tooling via npm.
    installing emberfire
      identical app/adapters/application.js
    Cannot find module 'q'
    Error: Cannot find module 'q'
        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> (/Users/admin/projects/solutions-log/node_modules/ember-cli/node_modules/bower/lib/commands/index.js:1:71)
        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)
    $ npm cache clean
    $ npm install q
    solutions-log@0.0.0 /Users/admin/projects/solutions-log
    └── q@1.4.1 
    
    $ ember install emberfire
    version: 1.13.15
    Installed packages for tooling via npm.
    installing emberfire
      identical app/adapters/application.js
    Cannot find module '../function/makeIterator_'
    Error: Cannot find module '../function/makeIterator_'
        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> (/Users/admin/projects/solutions-log/node_modules/ember-cli/node_modules/bower/lib/node_modules/mout/array/collect.js:2:20)
        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)
    

0 个答案:

没有答案