首页 > 解决方案 > 如何修复安装“sharp”模块时出现问题,在 expo 中找不到模块“../build/Release/sharp.node”

问题描述

expo我在执行命令后尝试安装,exp start但我得到:

Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp.node'.

我该如何解决这个问题?

标签: react-nativeexponpm-installsharp

解决方案


我有同样的问题,这个单行命令就可以了。

npm rebuild --verbose sharp

请参阅常见问题中的安装文档。


推荐阅读