PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.88k stars 316 forks source link

[BUG] sh -c node-gyp rebuild fails #924

Open jamesmurdza opened 3 months ago

jamesmurdza commented 3 months ago

What happened?

Hi! Plasmo works fine on my system. Unfortunately I've tried showing two people how to use it and they both ran into dependency errors with node-gyp when trying to build new Plasmo apps.

image

This happens on npm run dev. Is this a common issue? It seems like a node-gyp issue, but many are running into it.

Here's a stream where we tried to debug it: https://youtu.be/4lbnB2f_Z5M?t=1035

Version

Latest

What OS are you seeing the problem on?

Windows, MacOSX

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct

tommyle commented 3 months ago

Try installing node-gyp globally

yarn global add node-gyp
jamesmurdza commented 3 months ago

Hi! Thanks for the reply.

If you have a look at the screenshot and stream link above: The command that failed was installing node-gyp globally. I don't think it should make a difference if npm or yarn is used?

dougwithseismic commented 3 months ago

Also experiencing this via npm - using pnpm works fine, at least here. General consensus seems to point towards some BS with @parcel/watcher and npm compatibility 🤷‍♀️.

https://github.com/parcel-bundler/watcher/issues/156