The command npm install can also be used to add new dependencies. Just type npm i and npm install will be executed. Most npm commands have an alias, so you don't have to type the entire command. Once the dependencies are added into the node_modules folder, they are found by the application. Check out the article - What is package-lock.json, if you are not familiar with this file.īasically running npm install (with no arguments) reads the list of dependencies from the package.json with the applicable package versions and version locks( package-lock.json),ĭownloads the dependencies, and puts them into the node_modules/ folder. You'll see a progress bar as npm begins downloading the dependencies, and a node_modules/ folder will be created in the project's root directory.Ī package-lock.json file will also be created, if none existed in the project already.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |