Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-remote-install

nak2k25MIT0.2.0

npm install to a remote

npm

readme

npm-remote-install

npm-remote-install installs your package to a specified host.

Installation

npm install -g npm-remote-install

Usage

CLI:

npm-remote-install path/to/your/pkg host

API

installOnRemote(pkgDir, host, options, callback)

  • pkgDir
    • A package directory to install on a remote host.
  • host
    • A remote host to connect with ssh.
  • options.global
    • A boolean value if a package installs globally.
  • options.sudo
    • A boolean value if sudo has to be used on a remote host.
  • callback(err)
    • A callback which is called when a package has installed, or an error occurs.

License

MIT