npm-modules-sync | Keep your global NPM packages in sync between machines | Build Tool library
kandi X-RAY | npm-modules-sync Summary
kandi X-RAY | npm-modules-sync Summary
TL;DR While NVM and the likes let you keep packages in sync between multiple versions, if you develop across multiple machines, you can use this module to keep your global NPM packages in sync.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of npm-modules-sync
npm-modules-sync Key Features
npm-modules-sync Examples and Code Snippets
Community Discussions
Trending Discussions on npm-modules-sync
QUESTION
I installed some npm global packages in my work computer, and I want to sync these packages with another computer.
Normally in a project we have package.json
to record package information, and we just need to npm i
to install all the packages, but seems there's no package.json
for global environment.
Update:
Thanks for everyone's help, npm-modules-sync is exactly what I'm looking for.
...ANSWER
Answered 2017-Jan-11 at 05:52try this, It will list all the packages without the dependencies.
npm list -g --depth=0
If you want to list the dependencies you can do
npm list -g
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install npm-modules-sync
On the machine you want to use as the source of your package list, run npm-sync init -t <your-github-token>. Note the ID of the gist returned from the previous step once it completes. On the machine you want to sync using the the gist, run npm-sync init -t <your-github-token> -i <gist-id>. Run npm-sync up subsequently on your main machine to update the list of packages. Run npm-sync dl subsequently on your syned machines to download the current list of global packages. N.B Step 1 needs to be run only once on the machine that you want to use as your source of truth. Similarly, step 3 needs to be run only once on every machine you want to keep in sync.
On the machine you want to use as the source of your package list, run npm-sync init -t <your-github-token>
Note the ID of the gist returned from the previous step once it completes
On the machine you want to sync using the the gist, run npm-sync init -t <your-github-token> -i <gist-id>
Run npm-sync up subsequently on your main machine to update the list of packages
Run npm-sync dl subsequently on your syned machines to download the current list of global packages
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page