Hi. @plasmicapp/cli doesn’t support Yarn v2. Firstly, it incorrectly checks for dependencies such as @plasmicapp/react-web. Secondly, it tries to run incorrect command for installing.
• Plasmic cli should give the choice to skip installing @plasmicapp/react-web. Currently it shows: Plasmic error: Upgrading @plasmicapp/react-web is required to continue.
• Plasmic cli should check for packages correctly. Yarn v2 stores them in .yarn
directory.
• Plasmic cli should check for packages correctly in workspaces. Yarn v2 stores them in .yarn
at project level. So, if my website is in ~/my-project/packages/website
, packages are in ~/my-project/.yarn
.
• Plasmic cli should advice to run correct command. Yarn v2 doesn’t have --ignore-scripts -W
flags for yarn add
.
Quick fix is to allow passing “n” without error:
? A more recent version of @plasmicapp/react-web >=0.2.87 is required. Would you like to upgrade via "yarn add
--ignore-scripts -W @plasmicapp/react-web"? (Y/n) n
Plasmic error: Upgrading @plasmicapp/react-web is required to continue.