Error while installing ember-cli-mirage


#1

I am following along with the super-rentals tutorial on the emberjs site. Here is the command line output:

Could not start watchman; falling back to NodeWatcher for file system events. Visit http://ember-cli.com/user-guide/#watchman for more info. Installed packages for tooling via npm. Version “0.1.2” not compatible with "^0.1.3" Error: Version “0.1.2” not compatible with "^0.1.3" at Object. (/home/gr4vy/Documents/sites/ember/super-rentals/node_modules/ember-cli-mirage/node_modules/broccoli-merge-trees/node_modules/fs-tree-diff/node_modules/heimdalljs-logger/node_modules/heimdalljs/index.js:12:11) at Module._compile (module.js:541:32) at Object.Module._extensions…js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object. (/home/gr4vy/Documents/sites/ember/super-rentals/node_modules/ember-cli-mirage/node_modules/broccoli-merge-trees/node_modules/fs-tree-diff/node_modules/heimdalljs-logger/dist/index.js:9:32) at Module._compile (module.js:541:32)

I get this error if I try to run ember server I get the same error. Everything works again if I remove the addon.


#2

What version of node are you using? A fix might be to update.


#3

It seems to be related to heimdalljs & heimdalljs-logger packages. The error message comes from https://github.com/heimdalljs/heimdalljs-lib/commit/91a4f1cffda5e3d43c8484fdb109d4503cfeb762.

Unfortunately I did not find yet what the exact problem is with these versions


#4

Also, it seems to be a specific npm 2.x issue (still have to confirm)


#5

Definitely related to heimdalljs. It should be fixed by https://github.com/heimdalljs/heimdalljs-lib/pull/3.

Note: in your case this is precisely coming from broccoli-merge-trees (https://github.com/broccolijs/broccoli-merge-trees/pull/46)


#6

I had the same issue with ember-cli-sass, removing node_modules and running npm install again seems to fix things.

https://github.com/aexmachina/ember-cli-sass/issues/128#issuecomment-238056092