FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.9k stars 140 forks source link

@foal/cli - npm by default (or an option to set this) #1016

Closed lcnvdl closed 2 years ago

lcnvdl commented 2 years ago

Hi! I was talking to a follower who cannot use FoalTS.

He's trying to create an app, and he got an error message, because foal is trying to install the dependencies using YARN.

We have the option to uninstall it (in order to solve the problem), but I was asking:

Example:

foal createapp myNewApp --npm

Thanks!

lcnvdl commented 2 years ago

I'm adding some screenshots: error_1 error_2 error_3

kingdun3284 commented 2 years ago

You can simply cd into the folder and install the dependency using

npm install
lcnvdl commented 2 years ago

Yes.

I think with Yarn (in Windows 11) the setup should work anyway. Doesn't it?

LoicPoullain commented 2 years ago

Yes, it seems there's a problem here. @lcnvdl could you re-run the following commands and copy paste the output here so that we can get Yarn errors?

foal createapp my-app
cd my-app
yarn install
lcnvdl commented 2 years ago

Hi! The guy who has the problem didn't send me any other messages. I'm sorry. I'm closing this ticket, If I have more information I'll let you know. Thank you very much.