In what scenario would a package be listed in both dependencies and devDependencies?
- When the package is a development tool
- When it's a runtime dependency
- When it's a peer dependency
- When it's a transitive dependency
A package can be listed in both dependencies and devDependencies when it's a development tool that is needed during both development and runtime. An example might be a testing library or build tool.
Loading...
Related Quiz
- In Express, ______ is used to match any route that has not been matched by earlier routes.
- How can you ensure the security of file uploads in a web application?
- How can you optimize the rendering performance of template engines like EJS and Pug?
- How can composite indexing be optimized to enhance query performance in relational databases?
- How can you allocate a buffer of a specified size without initializing it in Node.js?