Closed
Description
Documentation Link which I'm following
https://github.com/stackbit-themes/stackbit-examples/tree/main/chakra-ui
Error
When using the command npx create-stackbit-app@latest --example chakra-ui
on windows it generates the following error
Creating new project in chakra-ui ...
Error: Command failed: cp -R __tmp1664777203__/chakra-ui chakra-ui
'cp' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
killed: false,
code: 1,
signal: null,
cmd: 'cp -R __tmp1664777203__/chakra-ui chakra-ui',
stdout: '',
stderr: "'cp' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n'
}
node:child_process:397
ex = new Error('Command failed: ' + cmd + '\n' + stderr);
^
Error: Command failed: rm -rf __tmp1664777203__
'rm' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
killed: false,
code: 1,
signal: null,
cmd: 'rm -rf __tmp1664777203__',
stdout: '',
stderr: "'rm' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n'
}
Methods to reproduce it
- Open CMD on windows
- Go inside the folder where you want to create the stackbit example app
- Run the command
npx create-stackbit-app@latest --example chakra-ui
Metadata
Metadata
Assignees
Labels
No labels