How to update lodash to the latest version

I am using debian Linux-style npm to install Jpm. But I get errors regarding installed versions of lodash (as below)

test@localhost :~# npm install jpm --global npm WARN deprecated lodash@2.4.1 : lodash@ <3.0.0 is no longer maintained. Upgrade to lodash@ ^3.0.0. 

I mentioned a few of the following links, but still can’t upgrade the versions, but the problem remains.

https://github.com/lodash/lodash/tree/3.10.1-npm

https://github.com/npm/npm/issues/10573

Please offer a solution for updating the version of lodash.

+7
javascript npm lodash jpm
source share
2 answers

After reading the question again, I realized that the error is not really an error. What you get is a warning saying jpm using lodash@2.4.1 , which is deprecated and is no longer supported.

Looking at the latest version of jpm , I noticed that the lodash dependency for version 3.3.1 should be good.

This makes me think that either the installed version of jpm is old or the jpm dependency depends on the old version of lodash, which needs to be updated to remove the warning.

In any case, this warning can be ignored, but if you need to get rid of it, you will need to rebuild jpm (or, possibly, the jpm and jpm dependency) after updating the outdated lodash link.

+5
source share

For me, using Windows 7 worked as follows:

  npm i --save lodash 

The lodash documentation can be found here:

https://lodash.com/

+1
source share

All Articles