PlasmoHQ / plasmo

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

[BUG] npm create project error with with-src #929

Closed tomtomtomtony closed 6 months ago

tomtomtomtony commented 6 months ago

What happened?

A bug happened!the same as:https://github.com/PlasmoHQ/plasmo/issues/327.

Version

Latest

What OS are you seeing the problem on?

Linux

What browsers are you seeing the problem on?

Chrome

Relevant log output

Plasmo v0.85.2
🔴 The Browser Extension Framework
🟡 Extension name: paperhelper
🔴 ERROR  | Example with-popup not found. You may file an example request at: https://docs.plasmo.com/exp
🔴 EXIT   | 👋 Good bye and have a great day!

(OPTIONAL) Contribution

Code of Conduct

tomtomtomtony commented 6 months ago

NPM x plasmo init does not work,pnpm create plasmo --with-src does work

tuphan-dn commented 3 months ago

If you are running the command on Mac Silicon the XCode may be the cause. In short, because you did not approve the Xcode license, the Nodejs process (aka. create-plasmo) cannot execute the git clone command. To fix it:

sudo xcodebuild -license

Then type agree + Enter to approve the Xcode license and try pnpm create plasmo again.