how to update my package.json
snippet in javascript

how to update my package.json

user9799

npm install -g npm-check-updates
/after install run following:
ncu -u

//Then this:
npm update

update all dependencies npm package.json

user1821

npm i -g npm-check-updates
ncu -u
npm install