sharp当我从包(即图像处理包)添加这段代码时:
await sharp(req.file.path)\n .resize(500)\n .jpeg({ quality: 50 })\n .toFile(path.resolve(req.file.destination, \xe2\x80\x9cresized\xe2\x80\x9d, filename));\nRun Code Online (Sandbox Code Playgroud)\n我收到此错误:
\nIllegal instruction (core dumped)\nRun Code Online (Sandbox Code Playgroud)\n当我删除它时,一切都正常。我\xe2\x80\x99m很困惑。该代码有什么问题?
\n