Skip to content

Commit

Permalink
doctor: attempt to fix unlinkSync error on Windows
Browse files Browse the repository at this point in the history
Error: ENOENT: no such file or directory, unlink "D:\a\npm-check-updates\npm-check-updates\test\doctor\fail\package-lock.json"
  • Loading branch information
raineorshine committed Aug 16, 2020
1 parent 78e1b0e commit 8f17959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('doctor', () => {
}
finally {
fs.writeFileSync(pkgPath, pkgOriginal)
fs.unlinkSync(lockfilePath)
rimraf.sync(lockfilePath)
rimraf.sync(nodeModulesPath)
}

Expand Down

0 comments on commit 8f17959

Please sign in to comment.