npm[7320]: src\fs_event_wrap.cc:90: Assertion `wrap != nullptr' failed. #20738
Closed
Description
- Version: node 5.6.0
- Platform:Windows 64-bit
- Subsystem:
i had used rimraf to remove folder and use fs to remove file after download.
But when delete complete node have issue and i cant find the same on any where.
Thanks you very much.
clearFileAfterDownload (path) {
if (fs.existsSync(path)) {
rimraf(path, (err) => {
if(err) {
console.log(err);
}
});
}
if(fs.existsSync(path+'.zip')) {
fs.unlinkSync(path+'.zip');
}
}
(edited by @vsemozhetbyt: fix backticks for code block)
Activity