简体   繁体   English

Go Buffalo:ERRO[0000] 错误:名称 buffalodevn 是不允许的,请尝试不同的应用程序名称

[英]Go Buffalo: ERRO[0000] Error: name buffalodevn is not allowed, try a different application name

When trying to start a new buffalo project in my Go Path I get this error, in my search I don't see any references to this error in the docs or in other questions on different forums.当尝试在我的 Go Path 中启动一个新的 buffalo 项目时,我收到此错误,在我的搜索中,我没有在文档或不同论坛的其他问题中看到任何对此错误的引用。 I've tried different names in different forms but I always get the same error and I can't figure out why.我尝试了不同形式的不同名称,但总是出现相同的错误,我不知道为什么。 (tried names without buffalo) (试过没有水牛的名字)

ERRO[0000] Error: name buffalodevn is not allowed, try a different application name

when I run Buffalo Info当我运行 Buffalo Info 时

-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.13.4, meets the minimum requirements.

-> Go: Checking GOPATH
✓ You are using Go Modules, so no need to worry about the GOPATH.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /home/alexmerced/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v12.13.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.13.4, meets the minimum requirements.

-> Yarn: Checking installation
✘ The `yarnpkg` executable could not be found on your system.
For help setting up your Yarn environment please follow the instructions for you platform at:

https://yarnpkg.com/en/docs/install

-> PostgreSQL: Checking installation
✘ The `postgres` executable could not be found on your system.
For help setting up your Postgres environment please follow the instructions for you platform at:

https://www.postgresql.org/download/

-> MySQL: Checking installation
✘ The `mysql` executable could not be found on your system.
For help setting up your MySQL environment please follow the instructions for you platform at:

https://www.mysql.com/downloads/

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.29.0, meets the minimum requirements.

-> Cockroach: Checking installation
✘ The `cockroach` executable could not be found on your system.
For help setting up your Cockroach environment please follow the instructions for you platform at:

https://www.cockroachlabs.com/docs/stable/

-> Buffalo (CLI): Checking installation
✓ The `buffalo` executable was found on your system at: /usr/local/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.15.3, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/alexmerced
Root        /home/alexmerced
GoPath      /home/alexmerced/go
PackagePkg  alexmerced
ActionsPkg  alexmerced/actions
ModelsPkg   alexmerced/models
GriftsPkg   alexmerced/grifts
WithModules true
Name        alexmerced
Bin         bin/alexmerced
VCS         
WithPop     false
WithSQLite  false
WithDep     false
WithWebpack false
WithNodeJs  false
WithYarn    false
WithDocker  false
WithGrifts  false
AsWeb       true
AsAPI       false
InApp       false
PackageJSON {map[]}

I found your question since I had the same problem and searched for a solution... Then I had a look into the source and found:我发现了你的问题,因为我遇到了同样的问题并寻找了解决方案......然后我查看了来源并发现:

fb := append(opts.ForbiddenNames, "buffalo", "test", "dev")

So it seems the name is not allowed to contain "buffalo", "test" or "dev".因此,名称似乎不允许包含“buffalo”、“test”或“dev”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM