服务器连接问题记录:Cannot find module ‘../build/Release/sharp.node‘
程序员文章站
2022-05-30 21:09:54
...
[2020-12-12T11:47:05.315Z] debug ⛔️ Server wasn't able to start properly.
[2020-12-12T11:47:05.318Z] error Error:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'
Require stack:
npm install sharp --unsafe-perm
总结:当出现Something went wrong installing the "sharp" module时,安装报错的“sharp”,并且加上--unsafe-perm ,这是权限问题