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

[BUG] - ADD COMMAND IS NOT WORKING #100

Open
xhyabunny opened this issue Sep 10, 2024 · 3 comments
Open

[BUG] - ADD COMMAND IS NOT WORKING #100

xhyabunny opened this issue Sep 10, 2024 · 3 comments
Assignees

Comments

@xhyabunny
Copy link

NextUI Version

0.3.4

Describe the bug

My CLI gets stuck in the "add " command.
Right when it does the NPM installation, it gets stuck in the first part of the installation process.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

install nextui cli
use pnpm in your project
add a component with nextui add

Expected behavior

I expected a component to be added, but my cli gets stuck and i need to abort everytime i try adding something.

Screenshots or Videos

PS F:\workflow\nextjs\m-project-nextui> nextui add image

NextUI CLI v0.3.4

Adding required dependencies: @nextui-org/image

npm install @nextui-org/image
¿Desea terminar el trabajo por lotes (S/N)?
^C
Unexpected error. Please report it as a bug:
Error: Command failed: npm install @nextui-org/image
at genericNodeError (node:internal/errors:956:15)
at wrappedFn (node:internal/errors:510:14)
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at file:///C:/Users/bonni/AppData/Roaming/npm/node_modules/nextui-cli/dist/index.js:36:259
at new Promise ()
at fe (file:///C:/Users/bonni/AppData/Roaming/npm/node_modules/nextui-cli/dist/index.js:36:137)
at st (file:///C:/Users/bonni/AppData/Roaming/npm/node_modules/nextui-cli/dist/index.js:36:471)
at Command.un (file:///C:/Users/bonni/AppData/Roaming/npm/node_modules/nextui-cli/dist/index.js:75:1895)
AppData\Roaming\npm\node_modules\nextui-cli\node_modules\commander\lib\command.js:935:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 25872,
stdout: null,
stderr: null
}

Operating System Version

Windows 10 Pro Enterprise 22H2

Browser

Opera

Copy link

linear bot commented Sep 10, 2024

@wingkwong wingkwong transferred this issue from nextui-org/nextui Sep 11, 2024
@winchesHe
Copy link
Member

It maybe a network issue

@Erijoda
Copy link

Erijoda commented Oct 16, 2024

I had the same issue in my GitHub codespace. For reasons unknown the .npmrc file had package-lock=false in it which caused the nextui-cli to not recognize that it should use pnpm.

So i had to change it to true and then run pnpm install.

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

No branches or pull requests

3 participants