How is use of npm to install global packages that don't even get used in Node applications justified?

后端 未结 4 1176
小鲜肉
小鲜肉 2021-01-06 00:52

My knowledge of npm is this:

It is a package manager for Node.js applications. What this means is that when you need someone else\'s librar

4条回答
  •  半阙折子戏
    2021-01-06 01:32

    The -g option makes it a "global" package, which provide global commands. These are used for modules like build managers (for instance grup). These are modules that are used in the same way over multiple projects, therefore they are "global" modules.

    I am not sure however why they would use the -g option for cca, since cca seems to give you project specific functionality, not something like project management.

提交回复
热议问题