I want to use eslint instead of jshint in ember app. So, I just follow instructions from ember-cli-eslint github page, and run this two commands:
npm uninstall --save-dev ember-cli-jshint
ember install ember-cli-eslint
And!!!! my project turns into a pumpkin: no one ember
command doesn't work, throwing an error:
Error: Cannot find module 'ember-try-config'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/user/projects/ember-demo/node_modules/ember-cli/node_modules/ember-try/lib/utils/config.js:7:34)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
Here is my environment:
host@user $ ember --version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ift.tt/22TlJJ7 for more info.
ember-cli: 2.6.2
node: 5.11.1
os: linux x64
UPD: if you will skip the uninstall step - you won't get a pumpkin)) in this case ember
continues to work as expected, but I still couldn't use eslint as a linter tool.
Aucun commentaire:
Enregistrer un commentaire