Skip to content

Instantly share code, notes, and snippets.

@ryanve
Last active May 7, 2017 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanve/5e28670dc459a4f83955b20f31b3a9e0 to your computer and use it in GitHub Desktop.
Save ryanve/5e28670dc459a4f83955b20f31b3a9e0 to your computer and use it in GitHub Desktop.
how to find npm dependencies that are npm linked

npm run find-links

find node_modules -maxdepth 1 -type l

example output

node_modules/example

npm run inspect-links

find node_modules -maxdepth 1 -type l -ls

example output (relevant portion)

node_modules/example -> ../../example
{
"scripts": {
"find-links": "find node_modules -maxdepth 1 -type l",
"inspect-links": "find node_modules -maxdepth 1 -type l -ls"
}
}
@ryanve
Copy link
Author

ryanve commented May 7, 2017

Related npm package: symlinked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment