Easy way to list node modules I have npm linked?

前端 未结 9 1101
情话喂你
情话喂你 2021-01-29 21:55

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

9条回答
  •  一向
    一向 (楼主)
    2021-01-29 22:37

    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())
    

提交回复
热议问题