nodejs same version number in all the dependencies


nodejs same version number in all the dependencies



During docker vulnerability check we found that package minimatch has vulnerabilities. Due to this we have to use minimatch package to latest which is 3.0.4.



I have copied the package-lock.json in the js section of fiddler https://jsfiddle.net/Loecjuy4/1/


"minimatch": "3.0.4" instead of "minimatch": "2.0.10"



If you search the package-lock.json at fiddler link that I provided, you will find minimatch as dependencies in many places sometimes version 3.0.4 is used (line 2022 in eslint) while in other places version 2.0.10 is used (line 3170).



I want to know a way such that package minimatch has the same version 3.0.4 in all the places of package-lock.json. I have tried shrinkwrap but it too shows different version of minimatch.





You tagged your question with [docker] tag, could you please indicate the relevance? Also where did you get your package-lock.json from?
– Andrew Savinykh
12 hours ago


package-lock.json





Remove the package-lock.json and regenerate it
– Tarun Lalwani
9 hours ago


package-lock.json





Open an issue at the relevant repository of packages that use the outdated version as dependency, after you updated these packages to the latest version.
– nijm
6 mins ago





1 Answer
1



Update all your dependencies to the latest version. If the old version is still in your package-lock.json, it means that the dependencies you use have a dependency itself on the old version. You should then probably contact the maintainers of these packages to upgrade their dependencies (i.e. by opening an issue on their respective repository).


package-lock.json






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV