astro add
fails when in a npm workspace
#7925
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: add
Related to `astro add` CLI command (scope)
What version of
astro
are you using?2.9.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
When I use Astro in a npm workspace, adding integrations via
astro add
fails.npm init
npm init -w ./packages/web
rm ./packages/web/package.json
(so create-astro can run in an empty folder)cd ./packages/web/ && npx create-astro@latest
and confirm each questionnpm run astro add tailwind
This results in:
This may be related to #3071.
What's the expected result?
The integration is added without any error.
Link to Minimal Reproducible Example
Participation
The text was updated successfully, but these errors were encountered: