Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

can i copy package-lock.json to another project

You don't need to copy over your node_modules directory. 
You shouldn't make any modifications to the files inside node_modules.

Preferably you need to only copy over your package.json file and optionally, 
your package-lock.json (or yarn.lock if you're using Yarn) file so that your 
project will be easily installable and upgradeable on other computers.

When you have a package.json or package-lock.json file, you can run npm install 
(or yarn install) to install the packages to your node_modules directory.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #project
ADD COMMENT
Topic
Name
3+9 =