create-go-app / cli

✨ A complete and self-contained solution for developers of any qualification to create a production-ready project with backend (Go), frontend (JavaScript, TypeScript) and deploy automation (Ansible, Docker) by running only one CLI command.
https://github.com/create-go-app/cli/wiki
Apache License 2.0
2.62k stars 262 forks source link

Error: [ERROR] [ERROR] When creating new app #97

Closed goliatone closed 3 years ago

goliatone commented 3 years ago

Required check list:

My environment:

Describe the bug:

It will create the backend directory but no frontend. Tried with different options for the front end choices with the same result/output.

Steps to reproduce the behavior:

Create a new project

% cgapp create                                                                            /tmp/test-go

Create a new project via Create Go App CLI v3.0.0...

[?] Choose a backend framework: fiber
[?] Choose a frontend framework/library: svelte-ts
[?] Choose a web/proxy server: traefik
[?] If everything is okay, can I create this project for you? ;) Yes

[OK] Backend was created with template `github.com/create-go-app/fiber-go-template`!
Error: [ERROR] [ERROR] 
Usage:
  cgapp create [flags]

Aliases:
  create, new

Flags:
  -h, --help       help for create
  -t, --template   enables to use custom backend and frontend templates

Expected behavior:

Have a fully working application

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! 👍 Be sure to follow the issue template.

koddr commented 3 years ago

Hi,

It looks like you don't have Node.js installed with npm version 7 or higher. Please take a look at this and try again to create a new project.

Furthermore, you can use Docker-way to create.

goliatone commented 3 years ago

@koddr I actually do have node installed v16.5.0. I am using nvm if that matters at all?

koddr commented 3 years ago

@goliatone absolutely!

That's accurately what it says in the project Wiki and README:

Please make sure that you have npm version 7 or higher installed to create the frontend part of the project correctly. If you run the cgapp create command using our Docker image, npm of the correct version is already included.