Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
"NPM" can install packages globally, which means that in the long run your machine may be polluted with packages that are no longer needed.
If you use create-react-app, you need to install it globally first and then run it, which means that every time you use it, you only have access to the version you installed.
NPX stands for Node Package Execute and is used to run JavaScript packages directly, without installing them.
So, packaging pollution on your machine is no longer a problem.
Let's go back to create-react-ap. Since we only need to use it once, i.e. when creating the project, with NPX we don't need to install it.
Just type NPX create-react-app followed by your project name and you are ready to use the latest version
So how do you install NPX? You probably already have it. Since NPM 5.2, it's bundled.
#NPM #javascript #short films
Please feel free to connect and share this video with your friends and family if you find it useful.