Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 28, 2024 06:06
Show Gist options
  • Select an option

  • Save wilmoore/92ae78155e4e6b36370ba490a45c62f7 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/92ae78155e4e6b36370ba490a45c62f7 to your computer and use it in GitHub Desktop.
Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Package Managers :: NPM :: Link

Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Package Managers :: NPM :: Link

⪼ Made with 💜 by Polyglot.

related
cd $(npm root -g)
rm -rf <package>

About

Troubleshooting

Broken Symlink

Sometimes the symlink becomes broken. Just delete it and re-create it manually.

> cd node_modules
> rm {package_name}
> ln -nfs ../../@scope/name

List Links

npm ls --depth=0 --link=true --location=project (default if not specified)
npm ls --depth=0 --link=true --location=global
npm ls --depth=0 --link=true --location=user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment