LinuxCommandLibrary

npm-link

symlinks packages for local development

TLDR

Link current package globally

$ npm link
copy
Link to global package
$ npm link [package-name]
copy
Link local dependency
$ npm link [../path/to/package]
copy
Unlink package
$ npm unlink [package-name]
copy

SYNOPSIS

npm link [package]

DESCRIPTION

npm link symlinks packages for local development. Enables testing packages locally.
The command creates global symlink. Then link into projects for development.

PARAMETERS

PACKAGE

Package name or path.
--help
Display help information.

CAVEATS

Creates symlinks. Can cause issues with bundlers. Use carefully.

HISTORY

npm link enables local package development by creating symlinks between packages.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community