Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to install plasmo via pnpm #984

Open
2 of 3 tasks
balub opened this issue May 29, 2024 · 0 comments
Open
2 of 3 tasks

[BUG] Unable to install plasmo via pnpm #984

balub opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@balub
Copy link

balub commented May 29, 2024

What happened?

I followed the docs and executed the following command pnpm create plasmo only to be met with the following errors.

pnpm create plasmo
🟣 Plasmo v0.86.3
🔴 The Browser Extension Framework
🟡 Extension name: demo-extension
🟡 Extension description: A basic Plasmo extension.
🟡 Author name: Plasmo Corp. <[email protected]>
🔵 INFO   | Creating new project with popup
🔵 INFO   | Installing dependencies...
 WARN  1 deprecated subdependencies found: [email protected]
Packages: +589
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 667, reused 588, downloaded 0, added 589, done
node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script, failed in 7.2s
.../[email protected]/node_modules/sharp install$ (node install/libvips && node install/…
│ sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.1…
│ sharp: Installation error: Request timed out
│ sharp: Please see https://sharp.pixelplumbing.com/install for required dependenci…
└─ Failed in 7.2s at /Users/********/********/********/********/demo-extension/node_modules/.pnpm/[email protected]/node_modules/sharp
 ELIFECYCLE  Command failed with exit code 1.
🟠 WARN   | pnpm install exited with non-zero code: 1
🔵 INFO   | Initializing git project...
🟢 DONE   | Your extension is ready in:  /Users/********/********/********/********/demo-extension

    To start hacking, run:

       cd demo-extension
       pnpm dev

    Visit https://docs.plasmo.com for documentation and more examples.

Even after explicitly installing sharp by following instructions from here I still get the same error.

When I run pnpm run in the project directory, unsurprisingly it throws the following error.

> [email protected] dev /Users/********/********/********/********/demo-extension
> plasmo dev

sh: plasmo: command not found
 ELIFECYCLE  Command failed.

Extra Info:
node version: v20.11.0

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

pnpm create plasmo
🟣 Plasmo v0.86.3
🔴 The Browser Extension Framework
🟡 Extension name: demo-extension
🟡 Extension description: A basic Plasmo extension.
🟡 Author name: Plasmo Corp. <[email protected]>
🔵 INFO   | Creating new project with popup
🔵 INFO   | Installing dependencies...
 WARN  1 deprecated subdependencies found: [email protected]
Packages: +589
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 667, reused 588, downloaded 0, added 589, done
node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script, failed in 7.2s
.../[email protected]/node_modules/sharp install$ (node install/libvips && node install/…
│ sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.1…
│ sharp: Installation error: Request timed out
│ sharp: Please see https://sharp.pixelplumbing.com/install for required dependenci…
└─ Failed in 7.2s at /Users/********/********/********/********/demo-extension/node_modules/.pnpm/[email protected]/node_modules/sharp
 ELIFECYCLE  Command failed with exit code 1.
🟠 WARN   | pnpm install exited with non-zero code: 1
🔵 INFO   | Initializing git project...
🟢 DONE   | Your extension is ready in:  /Users/********/********/********/********/demo-extension

    To start hacking, run:

       cd demo-extension
       pnpm dev

    Visit https://docs.plasmo.com for documentation and more examples.

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@balub balub added the bug Something isn't working label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant