Node batch downloading pdf files to local problem

there is an error downloading pdf files in batches using download module. In the process of downloading, it always stops when downloading more than 20 or 40 files

var arr = [{
        url: "http://pdf.dfcfw.com/pdf/H2_AN201803271111860450_1.pdf",
        name: "6015002017"
    },

    {
        url: "http://pdf.dfcfw.com/pdf/H2_AN201803281112695091_1.pdf",
        name: "6015552017"
    }]
    
Promise.all(arr.map(x => download(x.url, "dist",{filename:x.name+".pdf"}))).then(() => {
    console.log("files downloaded!");
}).catch((error)=>{
    console.log(error)
})

the error is as follows

clipboard.png
is there any good way to solve this problem?

Mar.25,2021

on Windows systems, the characters that are not allowed for file names are:

< > / \ | : " * ?

the downloaded file needs to be renamed

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e36c1b-4bae9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e36c1b-4bae9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?