【问题标题】:install a specific version of winston package [duplicate]安装特定版本的winston包[重复]
【发布时间】:2018-09-26 01:18:44
【问题描述】:

是否可以通过 npm 下载特定版本的 winston,如下所示:
npm install winston=2.2.0

因为在下载最新版本时,我使用 2.2.0 编写的现有代码面临以下问题:

(node:13100) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: cb is not a function
(node:13100) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 

【问题讨论】:

    标签: javascript node.js winston


    【解决方案1】:

    是的,npm install winston@2.2.0

    有关更多信息,请阅读npm install 文档:https://docs.npmjs.com/cli/install

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-26
      • 1970-01-01
      • 1970-01-01
      • 2020-04-27
      • 2016-12-21
      • 2014-03-03
      • 2017-06-05
      • 2019-12-15
      相关资源
      最近更新 更多