Fail to create new project
dyaskur opened this issue · comments
I tried to run skeet new
and return below error:
skeet new
? Enter the name of the app skeet-app
🚛 Downloading base template...📦 ⠼node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open 'skeet-app/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'skeet-app/package.json'
}
Node.js v20.11.1
My OS is macOS Sonoma m1
Which version are you using?
I tried it, and it works with the latest version!
skeet -V
2.2.23
I used skeet latest version also. Previously I have pnpm problem, but fixed by :
mkdir -p ~/.pnpm/store
export PNPM_HOME=~/.pnpm/store
pnpm setup
source ~/.zshrc
I got that command from pnpm/pnpm#5883 (comment)
does it related to my current problem?
After debugging this repository, I've discovered that the issue stems from wget not being installed on my computer. It's puzzling why the process continues despite the download failure. Additionally, considering that macOS and windows comes with curl pre-installed and most Linux distributions also have it readily available, it raises the question: why are we using wget instead of curl?
I'm planning to submit a pull request to switch to CURL and include error messages for download failures. There are various reasons downloads can fail, such as missing curl/wget, blocked URLs, URL not found, or connectivity issues. Would that be alright?
Furthermore, I've noticed numerous inconsistencies in variable names and some code duplications. If permissible, I'd like to undertake a refactoring effort to address these issues as well.
Hello,
Thank you for the report! I've also reviewed your pull request and appreciate the excellent work.
We have a Discord chat where we discuss our open-source software projects, and I'd like to invite you to join us there. Here's the link: Discord Chat.
I'm planning to integrate Vitest into this repository. Given that we're transitioning from Skeet v2 to v3, a significant amount of refactoring is necessary. It would be great to discuss this further on our Discord thread.
Thank you very much for your contributions!