diff --git a/lib/metrics.js b/lib/metrics.js index d062ebd10..db0aa0afe 100644 --- a/lib/metrics.js +++ b/lib/metrics.js @@ -1,7 +1,7 @@ 'use strict'; const _ = require('lodash'); -const axios = require('axios/dist/node/axios.cjs'); +const axios = require('axios'); const cleanStack = require('clean-stacktrace'); const Log = require('./logger'); const path = require('path'); diff --git a/lib/scan.js b/lib/scan.js index 0b18054a1..7fcb11116 100644 --- a/lib/scan.js +++ b/lib/scan.js @@ -13,7 +13,7 @@ const Promise = require('./promise'); * via require when we new Lando() */ const requestClient = () => { - const axios = require('axios/dist/node/axios.cjs'); + const axios = require('axios'); // @todo: is it ok to turn redirects off here? // if we don't we get an error every time http tries to redirect to https return axios.create({