ADDING PACKAGES
•New node_modulesdirectorycreated
•Package.json:
{
"name":"my-first-app",
"version":"1.0.0",
"description":"Somedescription",
"main":"index.js",
"scripts":{
"test":"echo \"Error: no test specified\" && exit1"
},
"author":"Krzysztof Bzowski",
"license":"ISC",
"dependencies":{
"express":"^4.16.0"
}
}
TIP:
npm i –S <package_name>@<version>
npm i –S
[email protected]
TIP:
npminstall
Willinstallallmisingdependencies