- [Instructor] Now, let's go over the basics
of removing a package.
In fact, let's address the warning we got earlier
about our ES2015 Babel Preset Package
and install the right one.
So if you recollect and go to the Babelrc file here,
you'll see that we have an environment preset,
but not ES2015.
And if we go back to our package.json file,
we actually install the ES2015
as opposed to the environment,
which is kinda deprecated.
It's still used, we can still use that,
but they prefer us to move to the environment
and they will be deprecated eventually.
So let's go ahead and remove that package
and install a new one.
So I'm gonna make sure my devDependencies aren't on screen.
And let's go ahead and do that.
So, the command is npm and the keyword
to remove a package is uninstall
and I don't think you are surprised about that one.
Let's do babel-preset-es2015
and you'll see this package disappear
and then let's just install the right package.
So nmp install babel-preset-env
and make sure to do the keyword, save-dev.
So it's dash, dash, save, dash, dev.
And that's pretty much how it goes.
So this is how easy it is to uninstall a package.
So feel free to play with adding,
removing, updating packages.
This is a good basis for you to play with npm.