- [Instructor] Npm is constantly growing as a better
tool every year with new commands and additions
to its already solid list of commands,
but there are alternatives you could use.
Be aware that more often than not,
if something works well in these alternatives
most likely npm will implement it to.
For example, the package lock that Jason file
was introduced not too long ago after Yarn did it.
I use Yarn for a bit and then switched back to npm.
But again, make your own decisions.
Their first option is yarn, which was introduced
by the Facebook team.
It is pretty much almost the same as npm, as it also uses
a lock file to prevent any project issues
when you've passed them around.
So, you can find Yarn on the web with Yarnpkg.com.
Yarn is usually faster than npm but does require
to install the packager.
So, this is where we can use npx to try out Yarn
without officially install it.
So, you could do something like, npx
yarn and you wouldn't have to install Yarn,
it would actually run Yarn and do the install
in your system without having Yarn installed.
The second option is called ni.
It can be found at this link;
ni does the same as both npn and Yarn,
but in a less verbals approach.
So if you want to try it out, you can test it again
with npx to see what it looks like.
So we could go back here and use npx again
by doing npx, then select a package which is better-npm.
Install, and then do ni to run the command.
So again it does the exact same thing as npm and Yarn,
but with different messages and a different approach.
So feel free to take whatever approach or whatever option
you prefer and install that package and use it.
Or again, use npx to test any packages you'd like to use.