Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

difference between package.json and package lock.json

=>Package.JSON
*->this file is mandatory for every project
*->It contains basicinformation about the project
*->Application name/version/scripts (ng scripts)

=> Package-lock JSON

*->This files automatically generated for those operations where npm modifies either the
rnode_module tree or package-json.

-*>It is generated after an npm install

*->It allows future devs & automated systems to download the same dependencies as
the project.

it also allows you to go back to the past version of the dependencies without actual
‘committing the node_modules folder.

It records the same version of the installed packages which allows to reinstall them.
Futuee installs wll be capable of building identical description tree.

packages locked (already installed in project) -> folder in node_module

install pacakges + their dependencies & create reference in packageson
Comment

PREVIOUS NEXT
Code Example
Javascript :: learn mongodb 
Javascript :: change image onclick js 
Javascript :: axios react post form data 
Javascript :: async await in javascript 
Javascript :: loop through nested json object typescript 
Javascript :: javascript search for words in sentence examples 
Javascript :: html anchor tag javascript confirm 
Javascript :: how to add options to select in jquery array 
Javascript :: javascript continue with for Loop 
Javascript :: hello world react 
Javascript :: how to add all values of array together js 
Javascript :: react native get location 
Javascript :: javascript deconstruct object 
Javascript :: jquery element befor 
Javascript :: change li position in ul jquery 
Javascript :: nextjs framer motion 
Javascript :: form.reset function in javascript 
Javascript :: render twice react 
Javascript :: javascript get second last element of array 
Javascript :: kubernetes taint master node 
Javascript :: react convert excel to json 
Javascript :: javascript add text to textarea overwrite 
Javascript :: how to print a array js 
Javascript :: window location any web 
Javascript :: react algolia range slider 
Javascript :: getJSON how to set async to false 
Javascript :: using template literals to create html 
Javascript :: { use UnifiedTopology: true } 
Javascript :: clear timeout in function js 
Javascript :: javascript array push 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =