【问题标题】:What is the difference between the following npm install statements?以下 npm install 语句有什么区别?
【发布时间】:2021-11-15 20:36:58
【问题描述】:

npm install @uiw/react-monacoeditor --save

VS

npm i @uiw/react-monacoeditor

以下 npm install 语句何时使用 --save 标志有什么区别?

【问题讨论】:

    标签: npm npm-install


    【解决方案1】:

    目前它们完全没有区别。由于 NPM 5 包在安装时会自动保存到 package.json 依赖项中。

    npm I 是 npm install 的简短版本,因此部分命令也完全没有区别。

    您可以在此处阅读有关安装命令的更多信息:https://docs.npmjs.com/cli/v8/commands/npm-install

    确实有说“npm install 默认将任何指定的包保存到依赖项中。”

    【讨论】:

      猜你喜欢
      • 2019-01-27
      • 2019-03-01
      • 1970-01-01
      • 2017-08-04
      • 2012-09-10
      • 2012-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多