All the dependencies/modules for a node project are in the ./node_modules directory. If you copy this directory to a different project all the dependencies will stay in tact. However, be advised that the origin environment and destination environment must match quite closely. Changes to the OS, architecture, node version, etc. can break many commonly used modules. NPM will take care of this for you so it is recommended.
If you are building a library and trying to share it outside of NPM, you might consider npm-pack <https://docs.npmjs.com/cli/pack>. HTH, Mikkel https://www.oblivious.io/ On Wednesday, March 28, 2018 at 6:40:13 AM UTC-7, Srisowrabha Kumar wrote: > > Hi all, > > I am new to Node and need help on collecting all files/folders related to > a node module. The agenda is to save a particular version on a local > repository. The normal npm install grabs the version from NPM repo. > However, I need in such a way that I can pull/copy the module from my local > repo and paste the files/folders to the required destination. Kindly > suggest. > > Thank you, > Sowrabha > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/284c9d43-431b-4ce1-b148-94c893013d1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
