Skip to content

Commit

Permalink
Fix illegal FS operation on versions cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Oct 16, 2023
1 parent f93c2bf commit c91aa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dependency-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function onlineVersionsFromScratch(cachePath, remotePackagesUrl) {
}

const onlineVersionsJson = syncGetWorker.get(remotePackagesUrl);
FS.mkdirpSync(cachePath);
FS.mkdirpSync(path.dirname(cachePath));
fs.writeFileSync(cachePath, onlineVersionsJson);
const onlineVersions = JSON.parse(onlineVersionsJson);
try {
Expand Down

0 comments on commit c91aa08

Please sign in to comment.