I am trying to update dependencies for various projects I have on GitHub. I wanted to update them one at a time. I went through these steps:
- npm update (from master)
- npm update dependency-name (from folder containing the json files)
- npm install dependency-name --save
- npm fix --force (don't remember this command exactly. It was similar to that)
Then I got a message that said "--force. I hope you know what you're doing." I knew immediately that I'd made a mistake because I didn't know what I was doing. I found that command while Googling solutions, so I stopped there.
How can I update a specific dependency in a package-lock.json file? Also, could I have done significant damage with the --force command?
Thank you.