将web3作为依赖项会发出如下的弃用通知
npm WARN deprecated @types/keyv@4.2.0: This is a stub types definition. keyv provides its own type definitions, so you do not need this installed.
npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated multicodec@1.0.4: This module has been superseded by the multiformats module
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated multibase@0.6.1: This module has been superseded by the multiformats module
npm WARN deprecated multibase@0.7.0: This module has been superseded by the multiformats module
npm WARN deprecated multicodec@0.5.7: This module has been superseded by the multiformats module
npm WARN deprecated cids@0.7.5: This module has been superseded by the multiformats module
这是一个问题吗?如果是,我如何解决它?
1条答案
按热度按时间9gm1akwq1#
该错误可能是由于.json文件中的依赖项版本造成的。
我试着用gatsby建立一个网站。在网站发布一两个月后,我试着用
npm update
,并向我抛出了一个与你的错误非常相似的错误。然后我发现npm有一个非常好的方式来显示依赖版本,在.json文件中使用
npm outdated
来提到这些版本。在我尝试使用
^
之前,我把所有的依赖项一个一个地编辑到想要的版本。然后npm update
成功地完成了这个任务,没有任何错误。我的gatsby build
工作得很好。我建议不要担心你的代码,如果问题和我的类似,只是依赖项一直在更新,我们需要记录版本,或者如果你想自动更新,就使用
^
或~
。您可以在
npm
website上查看更多详细信息。