ionic cordova resources 命令报错

ionic cordova resources 命令报错

Something went wrong installing the “sharp” module
[cordova-res]
[cordova-res] Cannot find module ‘…/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 exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

git上面作者的回答

“Pre-compiled binaries for sharp are provided for use with Node versions 6, 8 and 10 on 64-bit Windows, OS X and Linux platforms.”

翻译:为64位Windows,OS X和Linux平台上的节点版本6,8和10提供了用于sharp的预编译二进制文件
意思就是sharp的node版本暂时只支持 6 8 10
切到支持的版本就行了 然后装了个10.8.0 完美!

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值