使用ionic cordova resource
命令后,提示以下错误:
cordova-res.cmd ios [cordova-res] [cordova-res] Something went wrong installing the "sharp" module [cordova-res] [cordova-res] The specified module could not be found. [cordova-res] \?\D:\WEB\ConsentApp\node_modules\sharp\build\Release\sharp.node [cordova-res] [cordova-res] - Remove the "node_modules/sharp" directory, run "npm install" and look for errors [cordova-res] - Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/ [cordova-res] - Search for this error at https://github.com/lovell/sharp/issues [cordova-res] [ERROR] An error occurred while running subprocess cordova-res.
解决办法:
全局安装cordova-res
npm uninstall cordova-res
pm install -g...