简体   繁体   English

NPM:取决于jshint时如何更新lodash

[英]NPM: How to update lodash when depends of jshint

I have passed an audit in npm and I've got this: 我已经通过npm的审核,并且得到了以下信息:

在此处输入图片说明

So, I'm trying to update lodash package but I don't know how can I do it. 因此,我正在尝试更新lodash软件包,但我不知道该怎么做。 I have tried to do it with npm -i --save lodash, but this is not correct, because it's create another package with the latest version and not substitute the actual package which has ... version to the actual version. 我已经尝试使用npm -i --save lodash做到这一点,但这是不正确的,因为它使用最新版本创建了另一个软件包,而不是将具有...版本的实际软件包替换为实际版本。 My actual version of lodash is 3.7.0 and I wanto to update to 4.17.5. 我的lodash实际版本是3.7.0,我想更新到4.17.5。

在此处输入图片说明

How can I do it? 我该怎么做?

Run npm update lodash in your project's main directory. 在项目的主目录中运行npm update lodash If that doesn't work, run npm uninstall lodash and then npm install lodash . 如果这不起作用,请运行npm uninstall lodash ,然后npm install lodash

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM