当我在现有的Ember应用中运行ember install emberfire
时,我得到Cannot find module 'q'
。
我搜索了该问题,尝试了npm cache clean
和npm install q
。
现在,ember install emberfire
引发了Cannot find module '../function/makeIterator_'
,我不愿意继续前进。
然而,在npm-embercli-emberfire,建议是通过Bower安装npm install --save-dev ember-cli-emberfire
- 引用:
bower install
作为npm postinstall脚本由于当我试图专注于Ember(tutorial)应用程序时,npm和Node的阴谋成为一个令人恼火的谜团,我想知道:
ember install emberfire
的方式有何不同,如果在运行npm-recommended命令之前运行它是个问题?chown -R
usr / local。)$ 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)