【发布时间】:2015-07-09 16:14:25
【问题描述】:
谁能告诉我有什么区别?
NPM Install -g "package"
VS
NPM Install --global "package"
【问题讨论】:
-
没有区别。他们都是一样的。来自docs、
In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package. -
好吧,这就是我想的......很简单的问题,我知道。只是在 Google 上找不到任何东西 :)