NPM module installer without internet connection.
npm i -g onpm@github:RodnyE/onpmNow, onpm is ready to use.
It will make available the onpm command.
To check if everything went well, run:
onpm --versiononpm download [<package-spec> ...] [flags]"NPM Offline" cannot work if you don't have modules downloaded.
For example:
onpm download expressAfter completing this process, the downloaded modules will be available to
install them offline as many times as you want in other projects.
If you do not specify any modules, the ones specified in the package.json
will be downloaded to the cache.
Flags:
| flag | desc |
|---|---|
--prod, --production |
Download only package.json dependencies |
-f, --fast |
Download all modules quickly and directly in a single process |
onpm install [<package-spec> ...] [flags]Similar to the npm install command, this is the command to install the
modules in your NodeJs project, with the slight difference that it will
no longer be from the internet.
If you do not specify any modules, the ones specified in the package.json
will be installed.
Example if you want to install the express and moment modules:
onpm install express moment --saveFlags:
| flag | desc |
|---|---|
-S, --save |
installs and add to package.json dependencies |
--save-dev |
installs and add to package.json devDependencies |
--no-save |
installs but doesn't add them to package.json |
--prod, --production |
installs only package.json dependencies |