I am looking for a command that will list the names of global modules that I have npm link
\'d to local copies, also listing the local path.
In fact, a list
find `npm root -g` -maxdepth 2 -type l
to show global links, including namespaced packages.
@andrew's answer works some of the time:
npm ls -g --depth=0 --link=true
but blew up on peer dep errors for me on some occasions. Hope that helps someone!
I didn't see anyone say it yet. On Windows you can just look at the directory:
C:\Users\[username]\AppData\Roaming\npm\node_modules
You should see any of the sim linked libs listed there, along side any global library installs.
I made a Node.js module that uses fs
to check for symlinks made by npm link
or otherwise.
https://www.npmjs.com/package/symlinked
var symlinked = require("symlinked")
console.log(symlinked.names())