What happened?When running I am on Macbook Pro - Monterey v12.4 Please let me know if there's something I'm missing, thank you! VersionLatest What OS are you seeing the problem on?MacOSX What browsers are you seeing the problem on?No response Relevant log output.nvm/versions/node/v16.14.0/lib/node_modules/plasmo/node_modules/sharp/lib/sharp.js:34
throw new Error(help.join('\n'));
^
Error:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-darwin-x64.node'(OPTIONAL) Contact DetailsNo response Code of Conduct
|
Replies: 12 comments 6 replies
|
Can you try to init an empty node project and add the sharp library as a dependency, and see if you can reproduce it there? |
|
Oh yup, forgot to add that in the original description but yes I tried it, still got the same error unfortunately. |
|
To be more clear, I didn't get any error when just running |
|
Can you try using |
|
running |
We will likely deprecate that method since |
|
pnpm seems didn't work too |
|
Got the same issue on a M1Pro with pnpm |
|
Hey! Error happens when running bun x as well. Same as above. I'm on ubuntu tho... Tried both node v21 (latest) and node v20 (latest). Installing the module with the suggested possible solution command gets rid of the error strangely ( |
|
ran into same issue, lib not working for me |
|
running into same issue with bun |
|
This error is caused by "sharp module doesn't have build directory". Type "pnpm rebuild sharp@0.32.6 -r" in your terminal will solve this issue. |
running
npm create plasmooryarn create plasmoworks! Weird that it only fails fornpm x plasmo init