npm
Contrary to the belief of many, “npm” is not in fact an abbreviation for “Node Package Manager”. It is a recursive bacronymic abbreviation for “npm is not an acronym”. (If it was “ninaa”, then it would be an acronym, and thus incorrectly named.) — Issac Z. Schlueter
npm is a package manager that runs through the command line or on the web. npm is used as a dependency manager, that allows programmers such as your self to create packages, share packages, and install packages from other programmers. As of this writing their are a total of 254,425 packages and growing at a rate of 407 per day.
Understanding packages: Packages are a set of functionality that is encapsulated into a specific package. This functionality can be a wide range of things from calculating precise number calculations to integrating another functionality that someone else has built.
Finding packages: To find packages with npm run the following command or search the index of npm
npm search numbers
Installing a packages: Once you have found the package that you want to use with in your application you can use the following command to install the package dependency for your program.
npm install numbers
Once the package is installed you can start using it within your program.
Remove Packages: To remove packages simple run the following command replacing the value of the name with the package that you want to remove.
rm -R node_modules/numbers
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More