Discussion:
[nodejs] Need help on Node modules
Srisowrabha Kumar
2018-03-28 09:26:27 UTC
Permalink
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 nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/938b096a-141f-4b9b-af56-2303386c3855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mikkel Wilson
2018-03-28 23:45:53 UTC
Permalink
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/
Post by Srisowrabha Kumar
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 nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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.
Loading...