Skip to content

[BUG] plasmo init fails for "sharp" module #176

@andrew-x

Description

@andrew-x

What happened?

When running npm x plasmo init or installing plasmo globally and simply running plasmo init, I get the same error:

.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'

I am on Macbook Pro - Monterey v12.4
My node version is v16.14.0

Please let me know if there's something I'm missing, thank you!

Version

Latest

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 Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions