mardi 2 août 2016

`ember install emberfire` failed, is ember-cli-emberfire a better route with Node 6.2.2?

Cannot find module 'q' and more…

When I run ember install emberfire in an existing Ember app, I get Cannot find module 'q'.

I searched the issue, tried npm cache clean and npm install q.

Now, ember install emberfire throws Cannot find module '../function/makeIterator_' and I'm reluctant to go further.

However, at npm-embercli-emberfire the advice is to install via Bower with npm install --save-dev ember-cli-emberfire - to quote:

  1. This repo lists emberFire as a bower dependency
  2. It runs bower install as the npm postinstall script
  3. it exports a tree containing both the firebase and emberFire libraries

Do node 6.2.2 and ember-cli play nicely yet?

Since the machinations of npm and Node become an irritating mystery when I'm trying to focus on an Ember (tutorial) app, I'd like to know:

  • how running ember install emberfire differs, and if running it before running the npm-recommended command is an issue?
  • If it's okay to run ember-cli with node 6.2.2 - if not, suggestions?

My setup

  • OS X 10.11.6 (and just had to chown -R usr/local after an OS X update).
  • node 6.2.2 (which apparently "has currently not been tested against Ember CLI and may result in unexpected behaviour.")
  • Ember: 1.13.15
  • npm: 2.14.10



Aucun commentaire:

Enregistrer un commentaire