diff --git a/.evergreen/run-kerberos-tests.sh b/.evergreen/run-kerberos-tests.sh index 4fab785b3ac..d2be7eddd59 100644 --- a/.evergreen/run-kerberos-tests.sh +++ b/.evergreen/run-kerberos-tests.sh @@ -28,7 +28,7 @@ export MONGODB_URI="mongodb://${USER}@${SASL_HOST}/${GSSAPI_DB}?authMechanism=GS set -o xtrace -npm i kerberos +npm i -D kerberos npm run check:kerberos set +o xtrace diff --git a/test/action/dependency.test.ts b/test/action/dependency.test.ts index 34ff0b06adc..c0c4206fe68 100644 --- a/test/action/dependency.test.ts +++ b/test/action/dependency.test.ts @@ -91,7 +91,7 @@ describe('package.json', function () { context(`when ${depName} is installed`, () => { beforeEach(async function () { - execSync(`npm install --no-save "${depName}"@"${depMajor}"`); + execSync(`npm install --no-save -D "${depName}"@"${depMajor}"`); }); it(`driver is importable`, () => {