\core\dist\index.js:1016:32 at Function.Jimp.read (C:\Users\lqshkiwiThis error originated either by throwing inside of an async function without a catch block, or by rejectinga promise which was not handled with .catch().
我一直在使用bluebird库的Promise.map函数,该函数从它接收的数组中返回一个已解析的承诺数组--这是它应该做的。 我只想在数组上映射,直到它达到第一个解析,然后它退出。到目前为止,我所拥有的是: var Promise = require('bluebird');
let comparer = async function (img1, imgURLarray) {img2 = new Promise(x => x(Jimp.read('https: