Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: DevOps Engineer Expert · Microsoft
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
First C : We should first move the dev packages to the devDependencies Then A : npm install --production
I think I'll go by A and C since the question says 'The libraries are used only during development and are not part of a production deployment.' it means that you need to add the dev dependencies in your Package.json file.
A. Run npm install and specify the --production flag. This will make npm only install the dependencies listed in the "dependencies" section of your package.json and skip those listed in the "devDependencies" section, which are assumed to be only relevant for development purposes. Therefore, only production dependencies will be present in the node_modules directory for WhiteSource Bolt to scan. D. Configure WhiteSource Bolt to scan the node_modules directory only. By focusing the scan to the node_modules directory, you ensure that WhiteSource Bolt only considers packages that have been installed and are needed for production. It would not take into account those packages which are purely for development purposes and thus not present in this directory.