Hello expert, today when I try to sync my code on droplet from git, I was not able to do so and it turns out that package-lock.json file at droplet has been updated and then I checked difference with my checked-in version and I saw a lot of library like the following:
Any idea what’s going on? I haven’t found anything from internet. Thanks for your insights in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
The mentioned libraries are part of the AWS Encryption SDK for JavaScript, which is typically used for client-side encryption and decryption of data.
Did you by any chance run
npm update
on your Droplet directly? This would indeed update yourpackage-lock.json
file.What I could suggest here is:
package-lock.json
file on your Droplet, just in case you need it later.mv package-lock.json package-lock.json.bak
Replace the
package-lock.json
on the droplet with the one from your Git repository. You can either copy it from your local machine to the droplet usingscp
or download it directly from your Git repository usingwget
orcurl
, depending on your setup.Run
npm ci
to install the exact versions of the dependencies specified in yourpackage-lock.json
file. This command will delete the existingnode_modules
directory and recreate it with the correct dependencies.Let me know how it goes!
Best,
Bobby