Why ember test –server was failing

When I tried to run ember test –server on my Linux machine I got the following:

$ ember test --server
DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `release`
    at /home/dmeyer/code/ember-engine-supportability/node_modules/ember-cli/lib/models/project.js:407:38
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
DEPRECATION: ember-cli-test-loader should now be included as an NPM module with version 1.1.0 or greater.BuildingWarning: ignoring input sourcemap for bower_components/vis/dist/vis.min.js because ENOENT: no such file or directory, open '/home/dmeyer/code/ember-engine-supportability/tmp/source_map_concat-input_base_path-RxdP9vul.tmp/bower_components/vis/dist/vis.map'
Warning: ignoring input sourcemap for bower_components/vis/dist/vis.min.js because ENOENT: no such file or directory, open '/home/dmeyer/code/ember-engine-supportability/tmp/source_map_concat-input_base_path-RxdP9vul.tmp/bower_components/vis/dist/vis.map'
⠇ Buildingfs.js:1431
    throw error;
    ^

Error: watch /home/dmeyer/code/ember-engine-supportability/tmp/source_map_concat-output_path-GJOxdYTW.tmp ENOENT
    at exports._errnoException (util.js:1022:11)
    at FSWatcher.start (fs.js:1429:19)
    at Object.fs.watch (fs.js:1456:11)
    at FSMonitor._measure (/home/dmeyer/code/ember-engine-supportability/node_modules/heimdalljs-fs-monitor/index.js:66:21)
    at Object.watch (/home/dmeyer/code/ember-engine-supportability/node_modules/heimdalljs-fs-monitor/index.js:82:30)
    at NodeWatcher.watchdir (/home/dmeyer/code/ember-engine-supportability/node_modules/sane/src/node_watcher.js:144:20)
    at NodeWatcher.<anonymous> (/home/dmeyer/code/ember-engine-supportability/node_modules/sane/src/node_watcher.js:278:14)
    at FSReqWrap.oncomplete (fs.js:123:15)

All my mac friends were doing fine. What was the matter?

Solution: I needed to install the right watchman. As the doc says:

Note, there exists a similarly named npm package (watchman) which is not the intended installation.

I’d fallen for that one. Once I installed the correct watchman, ember test –server yielded the screen I was looking for:

ember-test-server-working

 

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.