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

Vite create err #98

Closed hotrungnhan closed 3 years ago

hotrungnhan commented 3 years ago

Required check list:

My environment:

Describe the bug:


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

[?] Choose a backend framework: fiber
[?] Choose a frontend framework/library: vue-ts
[?] Choose a web/proxy server: nginx
[?] 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] Error: EPERM: operation not permitted, mkdir 'C:\Users\Kudou'
command not found: create-vite

Usage:
  cgapp create [flags]

Aliases:
  create, new

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

I was install vite , vue ,... as the global of npm. But when select vue-ts , it say command not found "create-vite" Steps to reproduce the behavior:

  1. Go to ...
  2. Click on ...
  3. ...
  4. See error

Expected behavior:

Screenshots:

Additional context:

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,

As indicated in the error (Error: EPERM: operation not permitted, mkdir 'C:\Users\Kudou'), try giving access to the folder in which you want to create a new project.

Moreover, you can always use a ready-made Docker image that already has everything you need to create a project.

hotrungnhan commented 3 years ago

this is a npm issue i dont know how but i try update npm as global , it seem to work.

npm install -g npm@latest --force 
koddr commented 3 years ago

@hotrungnhan yes, it's correct!

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.