Skip to content

it does not change the newly cloned directory #19

Open
@coolpraz

Description

@coolpraz

Environment

System:
OS: macOS 13.7
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 481.00 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.5 - /usr/local/bin/npm
Browsers:
Brave Browser: 124.1.65.123
Chrome: 130.0.6723.58
Safari: 18.0.1

Describe the issue

when executing command npx auth init --example command did not change directory to the new project and produce error message.

npx auth init --example
? Select a framework Next.js (next)
? Name of the project test
Cloning into 'test'...
? Initiailze .env with `AUTH_SECRET` yes
📝 Created /Users/coolpraz/Code/test123/test/.env.local with `AUTH_SECRET`.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/coolpraz/Code/test123/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/coolpraz/Code/test123/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: /Users/coolpraz/.npm/_logs/2024-10-22T17_47_52_258Z-debug-0.log

How to reproduce

npx auth init --example

Expected behavior

scaffhold new nextjs application with new auth.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions