-
Notifications
You must be signed in to change notification settings - Fork 265
Errors in the process
Empty the frontend folder after create
command
If in the second step of the cgapp create
command you selected some frontend framework or library, but the ./frontend
folder is empty (or there were errors during the creation process), it means that your local machine has too old Node.js with version 6.x (or lower).
Correct creation of the frontend part of the project is only possible if you have Node.js version
12.x
(or higher) and npm version7.x
(or higher).
Just install a newer version of Node.js or update npm
manually:
npm install -g npm@latest
Or you can use our pre-built isolated Docker container with pre-installed dependencies to leave your system untouched. To do so, run this command (you must have Docker version 19.x
or higher installed):
docker run --rm -it -v ${PWD}:${PWD} -w ${PWD} koddr/cgapp create
The authenticity of host can't be established
At the beginning, you may encounter a message like this:
The authenticity of host '<YOUR SERVER IP> (<YOUR SERVER IP>)' can't be established.
ECDSA key fingerprint is SHA256:<HASH>.
Are you sure you want to continue connecting (yes/no)?
Don't worry, this is a standard process if this is your first time accessing a remote server via SSH. Answer yes
and the process will continue.
Permission denied (publickey)
If you get the error Permission denied (publickey)
at the beginning, just add your private key (which you previously created and specified when creating the droplet) to the ssh-agent
in your computer with the following command:
ssh-add -K ~/.ssh/id_rsa
COPY failed: stat build/.env: file does not exist
If the container with the backend does not start or starts with an error COPY failed: stat build/.env: file does not exist
, check the .env
file in the directory with the backend.
Sometimes it happens, it's true... but don't get upset! 🙂
Wiki is a dynamically growing section, so write us your question and we'll try to answer it. If the question is interesting and/or repeated too often, we'll add it to a FAQ section (with reference to the author's issue).
The best way to ask a question is to create a new issue or a discussion in GitHub repository.
So, follow this checklist to ask a question that we can answer in the shortest possible time:
- Try to search similar question in the Create Go App CLI issues section.
- If your question is about Ansible, Docker, Go, JavaScript, TypeScript, or else, try to search at StackOverflow first.
- Please fully follow our template to create a new issue.
- If English is not your native language, please use online translator in advance (for example, DeepL or Google Translate).
- Demonstrate understanding to authors, because this is Open Source and not-for-profit product, and their support is not paid.
- Be nice to the other members of our community.