Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Sep 22, 2023
1 parent 6f4e4d9 commit 0f30748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function update() {
let latest = details.body['dist-tags'].latest
let version = details.body.versions[latest]
let tar = version.dist.tarball
fs.mkdirSync(path.dirname(path.join("temp", nodeNames[node])))
fs.mkdirSync(path.dirname(path.join("temp", nodeNames[node])),{recursive: true})
let tarPath = path.join('temp', nodeNames[node] + ".tgz")
let tarRes = await superagent.get(tar).responseType('blob')
fs.writeFileSync(tarPath, tarRes.body)
Expand Down

0 comments on commit 0f30748

Please sign in to comment.