Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
manage-linked-packages
Advanced tools
List and reset NPM and Yarn global linked packages, manually or programmatically in Yarn/NPM scripts.
There is no out-of-the-box way to locate or reset packages that have been linked with NPM link
or Yarn link
.
yarn link
or npm link
to create a global linked packageyarn link
and npm link
won't let you create/override a global linked package, say, if you needed to change folders where PackageA is located, or have a duplicate folder (for valid reasons). You have to yarn unlink
or npm unlink
PackageA first manuallymanage-linked-packages
helps you to manage these packages manually or programmatically in Yarn/NPM scripts.
With NPM:
npm install -g manage-linked-packages
With Yarn:
yarn global add manage-linked-packages
In your terminal or NPM/Yarn script type:
manage-linked-packages [options]
Short Syntax | Long Syntax | Description |
---|---|---|
-m <package-manager> | --package-manager <package-manager> | required: package manager to manage (yarn or npm ) |
-a <manage-action> | --manage-action <manage-action> | required: manage action to take (locate or reset ) |
-n <package-name> | --package-name <package-name> | required: name of global linked yarn/npm package to manage |
-V | --version | output the version number |
-h, --help output usage information |
some-package
:manage-linked-packages -m yarn -a locate -n some-package
This returns a success message with the real path of the linked package, for example:
found: /Users/user1/Projects/some-package
some-package
:manage-linked-packages -m npm -a reset -n some-package
This returns the output of the yarn unlink
or npm unlink
command that is performed in the appropriate global folder.
With NPM:
npm uninstall -g manage-linked-packages
With Yarn:
yarn global remove manage-linked-packages
FAQs
List and reset NPM and Yarn linked packages
The npm package manage-linked-packages receives a total of 30 weekly downloads. As such, manage-linked-packages popularity was classified as not popular.
We found that manage-linked-packages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.