Installing nodejs (and npm) on a computer running Windows 7 does not require any โmagicโ if you have administrator access on the target machine and do not care about setting up the expected โuninstallationโ, various Windows performance counters, event tracking, or in the menu "Start".
To manually install from an existing installation on one machine to another machine, simply
Copy the entire contents of the \ Program Files \ nodejs and \ Users \ USERNAME \ AppData \ Roaming \ npm directories, as well as the \ Users \ USERNAME \ .npmrc file to the same directories on the target machine. (Replace USERNAME with your own Windows login.)
Edit the file "\ Users \ USERNAME \ .npmrc" to replace the original username with the username on the target machine.
Add "C: \ Program Files \ nodejs" and "C: \ Users \ USERNAME \ AppData \ Roaming \ npm" to your PATH.
If you want to manually install directly from MSI (without using an existing installation to work), get Scott Willeke excellent lessmsi , which allows you to extract all files from any MSI archive and detect all actions taken by the Windows installer, such as the required changes in the Registry, etc. d. (Although for nodejs, you only need to edit the registry to add the correct keys to automatically uninstall it.)
Rob raisch
source share