Skip to content

Conversation

@Eazash
Copy link
Contributor

@Eazash Eazash commented Sep 7, 2025

πŸ”— Linked issue

Resolves nuxt/cli#937

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When @nuxt/content is installed during a nuxt init (or a pnpm create nuxt) command, it will add the required sqlite adaptor at the process working directory, rather than the root directory for the newly created nuxt project. In pnpm repositories without --ignore-workspace-root-check, this would lead to errors.

This PR sets the cwd when installing a dependency to the new app's rootDir.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link

vercel bot commented Sep 7, 2025

@Eazash is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@Eazash Eazash force-pushed the fix/dep-install-nuxt-root branch from 4edbfe7 to 85d8e67 Compare September 7, 2025 19:56
@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 7, 2025

npm i https://pkg.pr.new/@nuxt/content@3525

commit: 85d8e67

Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@farnabaz farnabaz merged commit 71f2989 into nuxt:main Sep 10, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm create nuxt should install all dependencies in created project directory

2 participants