How to Uninstall an Ember Add-on

Last reviewed on June 5, 2019 with Ember Octane

How hard could it be to remove an add-on?

$ ember uninstall add-on
The specified command uninstall is invalid. For available options, see `ember help`.

Oops!

What does the trick is uninstalling the npm package:

$ npm uninstall add-on --save-dev

Alternatively, remove the package from package.json and tell npm to remove “extraneous” packages:

$ npm prune

If you happen to have severe incompatibilities, go nuclear:

$ rm -rf node_modules tmp
# edit package.json
$ npm install

Enjoyed this article? Join Snacks!

Snacks is the best of Ember Octane in a highly digestible monthly newsletter. (No spam. EVER.)