What is a dependency?
A dependency is code someone else wrote that your site or app uses, like a date picker or code for taking payments. Your code lists them in package.json, and npm downloads them.
An example
Your AI tool runs npm install to add a captcha. The captcha’s code is now a dependency. If a security hole is found in it, you update it to a fixed version.