Advertisement
mbruns

NPM Dependencies and devDependencies in Node

Jun 11th, 2022
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. @h@ # Specifying dependencies and devDependencies in a package.json file
  3.  
  4. To specify the packages your project depends on, you must list them as "dependencies" or "devDependencies" in your package's package.json file. When you (or another user) run npm install, npm will download dependencies and devDependencies that are listed in package.json that meet the semantic version requirements listed for each. To see which versions of a package will be installed, use the semver calculator.
  5. */
  6. "dependencies": Packages required by your application in production.
  7. "devDependencies": Packages that are only needed for local development and testing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement