提问者:小点点

安装特定版本的winston软件包[重复]


是否可以通过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. 

共1个答案

匿名用户

是,NPM安装Winston@2.2.0

有关详细信息,请阅读NPM Install文档:https://docs.npmjs.com/cli/install