CURRENTLY
I have immer
as a dependency in 2 locations.
-- aws-amplify@4.3.1
| `-- @aws-amplify/[email protected]
| `-- immer@9.0.6
`-- [email protected]
`-- react-dev-utils@11.0.4
`-- [email protected]
ISSUE
The older version of immer
has a critical vulnerability. I need to update the dependency.
QUESTION
What is the CLI command to update the older immer dependency?
Notes
- I have been searching for an answer to this for a while, and I suspect the solution is super easy because I cannot find any answer to this question.
- I have tried
npm update immer
andnpm --depth 5 update immer
and neither solved the issue.
CodePudding user response:
I think you can use npm i
. If this doesn't work you could delete the node modules folder and type npm i
CodePudding user response:
Install npm check package globally npm install -g npm-check
to update all local modules, run npm-check --update-all
add -g
flag for global
and add path to node_modules
at the end if you have a custom path
Source