Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli init command erroring when using npm as package manager #378

Closed
Julian-AT opened this issue Dec 30, 2024 · 2 comments
Closed

cli init command erroring when using npm as package manager #378

Julian-AT opened this issue Dec 30, 2024 · 2 comments
Labels
bug Something isn't working released This issue/pull request has been released.

Comments

@Julian-AT
Copy link

Julian-AT commented Dec 30, 2024

Describe the bug
cli innit command fails with npm as package manager.

next-forge version
v2.21.11 (current @latest)

To Reproduce
npx next-forge@latest init [app-name] --package-mananger npm

Expected behavior
Initialize a new next-forge project with npm instead of pnpm

Screenshots

C:\PATH>npx next-forge@latest init example --package-manager npm
Creating new next-forge project...
Failed to initialize project: ENOENT: no such file or directory, chdir 'C:\PATH' -> 'C:\PATH\example'

If manually creating the example dir before running the command:

C:\PATH>npx next-forge@latest init example --package-manager npm
Creating new next-forge project...
Deleting internal content...
Removing pnpm lockfile and workspace config...
Installing dependencies...
Failed to initialize project: Command failed: npm install

Desktop (please complete the following information):

  • OS: Win 11
@Julian-AT Julian-AT added the bug Something isn't working label Dec 30, 2024
@haydenbleasel
Copy link
Owner

Found the issue! Was running npm create next-app instead of npx create next-app. Also fixed for bun 👍

Copy link

github-actions bot commented Jan 2, 2025

🚀 Issue was released in v3.0.6 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released This issue/pull request has been released.
Projects
None yet
Development

No branches or pull requests

2 participants