-
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
|
Beta Was this translation helpful? Give feedback.
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? |
Beta Was this translation helpful? Give feedback.
-
Oh yup, forgot to add that in the original description but yes I tried it, still got the same error unfortunately. |
Beta Was this translation helpful? Give feedback.
-
To be more clear, I didn't get any error when just running |
Beta Was this translation helpful? Give feedback.
-
Can you try using |
Beta Was this translation helpful? Give feedback.
-
running |
Beta Was this translation helpful? Give feedback.
-
We will likely deprecate that method since |
Beta Was this translation helpful? Give feedback.
-
pnpm seems didn't work too |
Beta Was this translation helpful? Give feedback.
-
Got the same issue on a M1Pro with pnpm
|
Beta Was this translation helpful? Give feedback.
-
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 ( |
Beta Was this translation helpful? Give feedback.
-
ran into same issue, lib not working for me |
Beta Was this translation helpful? Give feedback.
-
running into same issue with bun |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
running
npm create plasmo
oryarn create plasmo
works! Weird that it only fails fornpm x plasmo init