diff --git a/utils.js b/utils.js index 895d02ff3..ce03d3e56 100644 --- a/utils.js +++ b/utils.js @@ -428,8 +428,8 @@ export const parsePkgLock = async (pkgLockFile, options = {}) => { let dependenciesList = []; // Create the package entry - const srcFilePath = node.path.includes("/node_modules") - ? node.path.split("/node_modules")[0] + const srcFilePath = node.path.includes(`${_sep}node_modules`) + ? node.path.split(`${_sep}node_modules`)[0] : node.path; const scope = node.dev === true ? "optional" : undefined; const integrity = node.integrity ? node.integrity : undefined;