bug: `npm create checkly` fails when `__checks__` or `checkly.config.ts` exists
nahuelon opened this issue · 0 comments
nahuelon commented
Node.js version
v18
NPM version
8
@checkly/cli version
v4.0.8
Steps to reproduce
Run npm create checkly
from an already started Checkly project.
What is expected?
A user-friendly error message informing you have to rename/move the __check__
folder.
What is actually happening?
it does not handle Error: ENOTEMPTY
:
yosoy@YogaSlim7:~/checkly/sandbox/lalala$ npx create-checkly
checkly v4.0.8 Build and Run Synthetics That Scale
Hi Nahuel Alejandro Ramos! Let's get you started on your monitoring as code journey!
✔ It looks like you are already in a project, would you like to initialize? … yes
✔ Example template copied!
node:fs:1040
handleErrorFromBinding(ctx);
^
Error: ENOTEMPTY: directory not empty, rename 'coffee-trout/__checks__' -> './__checks__'
at Module.renameSync (node:fs:1040:3)
Any additional comments?
No response