简体   繁体   中英

NPM: How to update lodash when depends of jshint

I have passed an audit in npm and I've got this:

在此处输入图片说明

So, I'm trying to update lodash package but I don't know how can I do it. 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. My actual version of lodash is 3.7.0 and I wanto to update to 4.17.5.

在此处输入图片说明

How can I do it?

Run npm update lodash in your project's main directory. If that doesn't work, run npm uninstall lodash and then npm install lodash .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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