-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Createapp CLI works on windows, but not linux #1022
Comments
This should be the issue linking with #1023. It's caused by foal-cli using color js as a dependency. Simply add |
Unfortunately this did not work (I did not try a fresh install/create of my app, but I did try globally installing the 1.4.0 version of colors with no luck). |
Okay, then this should be another bug. Sometimes, there are some errors will be omitted if you are not adding the -r flag of supervisor. |
Hello @haneefkassam 👋 Could you confirm that in your npm i -g @foal/cli@2.7.2
foal createapp my-app |
The version of colors in my project's package-lock.json is 1.4.0. Confirmed. I tried running the command you mentioned, but run into the same problem (which is resolved by adding the |
Looks like this also affects the |
Fixed in v2.10 |
Version of FoalTS: 2.7.1
OS: Ubuntu 20.04/ZorinOS 16
Node: 16.13.1 (via snap)
I have been trying to set up my Linux VM (have tried on ubuntu 20.04 and ZorinOS 16) for foalTS development and am running into an issue. The CLI
foal createapp
command doesn't throw any error (other than mentioning that "Initialization of git failed". This happens on windows as well). I have made 0 changes the base app.However, when I try to run the app, it always fails with exit code 1
I've installed build-essential, gcc. On windows, the console clears and the app starts.
I can run
node build/index.js
and it'll start the app (but I don't get the benefits of the supervisor build).Edit: I figured it out. turns out if I add
--raw
to the package.json file for thedevelop
script, it works fine (note, this is only needed on linux, but doesn't affect the functionality of the app on windows). The develop script would then look like this (only showing relevant part of package.json):The text was updated successfully, but these errors were encountered: