1 如果你的项目中不需要 可以到node_modules 中删除 在到package.josn 删除canvas 2:yarn 或者npm 一下 就ok 3: 根本原因还是 你项目中有些依赖用到了canvas