{"id":207833,"date":"2025-07-08T12:48:25","date_gmt":"2025-07-08T04:48:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/207833\/"},"modified":"2025-07-08T12:48:25","modified_gmt":"2025-07-08T04:48:25","slug":"go-buffalo%ef%bc%9aerro-%e9%94%99%e8%af%af%ef%bc%9a%e5%90%8d%e7%a7%b0-buffalodevn-%e4%b8%8d%e5%85%81%e8%ae%b8%ef%bc%8c%e8%af%b7%e5%b0%9d%e8%af%95%e4%b8%8d%e5%90%8c%e7%9a%84%e5%ba%94%e7%94%a8%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/207833\/","title":{"rendered":"Go Buffalo\uff1aERRO \u9519\u8bef\uff1a\u540d\u79f0 buffalodevn \u4e0d\u5141\u8bb8\uff0c\u8bf7\u5c1d\u8bd5\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0"},"content":{"rendered":"<p><b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span> <span>&gt;<\/span> <span>&gt;<\/span> <span>&gt;<\/span> <span>Go Buffalo\uff1aERRO \u9519\u8bef\uff1a\u540d\u79f0 buffalodevn \u4e0d\u5141\u8bb8\uff0c\u8bf7\u5c1d\u8bd5\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0<\/span><\/p>\n<p><span>\u6765\u6e90\uff1astackoverflow<\/span><br \/>\n<span>2024-04-25 22:12:34<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p><span style=\"color: #222222;, sans-serif;background-color: #FFFFFF\">\u5404\u4f4d\u5c0f\u4f19\u4f34\u4eec\uff0c\u5927\u5bb6\u597d\u5440\uff01\u770b\u770b\u4eca\u5929\u6211\u53c8\u7ed9\u5404\u4f4d\u5e26\u6765\u4e86\u4ec0\u4e48\u6587\u7ae0\uff1f\u672c\u6587\u6807\u9898<span style=\"color: #222222;, sans-serif;background-color: #FFFFFF\">\u662f<\/span><span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGo Buffalo\uff1aERRO \u9519\u8bef\uff1a\u540d\u79f0 buffalodevn \u4e0d\u5141\u8bb8\uff0c\u8bf7\u5c1d\u8bd5\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0\u300b<\/span>\uff0c\u5f88\u660e\u663e\u662f\u5173\u4e8e<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">Golang<\/span>\u7684\u6587\u7ae0\u54c8\u54c8\u54c8\uff0c\u5176\u4e2d\u5185\u5bb9\u4e3b\u8981\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u5982\u679c\u80fd\u5e2e\u5230\u4f60\uff0c\u89c9\u5f97\u5f88\u4e0d\u9519\u7684\u8bdd\uff0c\u6b22\u8fce\u5404\u4f4d\u591a\u591a\u70b9\u8bc4\u548c\u5206\u4eab\uff01<\/span><\/p>\n<p> \u95ee\u9898\u5185\u5bb9<br \/>\n <\/p>\n<p>\u5f53\u5c1d\u8bd5\u5728\u6211\u7684 go \u8def\u5f84\u4e2d\u542f\u52a8\u4e00\u4e2a\u65b0\u7684 buffalo \u9879\u76ee\u65f6\uff0c\u6211\u6536\u5230\u6b64\u9519\u8bef\uff0c\u5728\u6211\u7684\u641c\u7d22\u4e2d\uff0c\u6211\u5728\u6587\u6863\u6216\u4e0d\u540c\u8bba\u575b\u4e0a\u7684\u5176\u4ed6\u95ee\u9898\u4e2d\u6ca1\u6709\u770b\u5230\u4efb\u4f55\u5bf9\u6b64\u9519\u8bef\u7684\u5f15\u7528\u3002\u6211\u5c1d\u8bd5\u8fc7\u4e0d\u540c\u5f62\u5f0f\u7684\u4e0d\u540c\u540d\u79f0\uff0c\u4f46\u603b\u662f\u9047\u5230\u76f8\u540c\u7684\u9519\u8bef\uff0c\u4f46\u6211\u4e0d\u660e\u767d\u4e3a\u4ec0\u4e48\u3002 \uff08\u5c1d\u8bd5\u8fc7\u6ca1\u6709\u6c34\u725b\u7684\u540d\u5b57\uff09<\/p>\n<pre>erro[0000] error: name buffalodevn is not allowed, try a different application name<\/pre>\n<p>\u5f53\u6211\u8fd0\u884c buffalo info \u65f6<\/p>\n<pre>-&gt; Go: Checking installation\n The `go` executable was found on your system at: \/usr\/local\/go\/bin\/go\n\n-&gt; Go: Checking minimum version requirements\n Your version of Go, 1.13.4, meets the minimum requirements.\n\n-&gt; Go: Checking GOPATH\n You are using Go Modules, so no need to worry about the GOPATH.\n\n-&gt; Go: Checking Package Management\n You are using Go Modules (`go`) for package management.\n\n-&gt; Go: Checking PATH\n Your PATH contains \/home\/alexmerced\/go\/bin.\n\n-&gt; Node: Checking installation\n The `node` executable was found on your system at: \/usr\/bin\/node\n\n-&gt; Node: Checking minimum version requirements\n Your version of Node, v12.13.1, meets the minimum requirements.\n\n-&gt; NPM: Checking installation\n The `npm` executable was found on your system at: \/usr\/bin\/npm\n\n-&gt; NPM: Checking minimum version requirements\n Your version of NPM, 6.13.4, meets the minimum requirements.\n\n-&gt; Yarn: Checking installation\n The `yarnpkg` executable could not be found on your system.\nFor help setting up your Yarn environment please follow the instructions for you platform at:\n\nhttps:\/\/yarnpkg.com\/en\/docs\/install\n\n-&gt; PostgreSQL: Checking installation\n The `postgres` executable could not be found on your system.\nFor help setting up your Postgres environment please follow the instructions for you platform at:\n\nhttps:\/\/www.postgresql.org\/download\/\n\n-&gt; MySQL: Checking installation\n The `mysql` executable could not be found on your system.\nFor help setting up your MySQL environment please follow the instructions for you platform at:\n\nhttps:\/\/www.mysql.com\/downloads\/\n\n-&gt; SQLite3: Checking installation\n The `sqlite3` executable was found on your system at: \/usr\/bin\/sqlite3\n\n-&gt; SQLite3: Checking minimum version requirements\n Your version of SQLite3, 3.29.0, meets the minimum requirements.\n\n-&gt; Cockroach: Checking installation\n The `cockroach` executable could not be found on your system.\nFor help setting up your Cockroach environment please follow the instructions for you platform at:\n\nhttps:\/\/www.cockroachlabs.com\/docs\/stable\/\n\n-&gt; Buffalo (CLI): Checking installation\n The `buffalo` executable was found on your system at: \/usr\/local\/bin\/buffalo\n\n-&gt; Buffalo (CLI): Checking minimum version requirements\n Your version of Buffalo (CLI), v0.15.3, meets the minimum requirements.\n\n-&gt; Buffalo: Application Details\nPwd         \/home\/alexmerced\nRoot        \/home\/alexmerced\nGoPath      \/home\/alexmerced\/go\nPackagePkg  alexmerced\nActionsPkg  alexmerced\/actions\nModelsPkg   alexmerced\/models\nGriftsPkg   alexmerced\/grifts\nWithModules true\nName        alexmerced\nBin         bin\/alexmerced\nVCS         \nWithPop     false\nWithSQLite  false\nWithDep     false\nWithWebpack false\nWithNodeJs  false\nWithYarn    false\nWithDocker  false\nWithGrifts  false\nAsWeb       true\nAsAPI       false\nInApp       false\nPackageJSON {map[]}<\/pre>\n<p> <\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p> <\/p>\n<p>\u6211\u53d1\u73b0\u4e86\u4f60\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u6211\u9047\u5230\u4e86\u540c\u6837\u7684\u95ee\u9898\u5e76\u5bfb\u627e\u89e3\u51b3\u65b9\u6848&#8230;&#8230;\u7136\u540e\u6211\u67e5\u770b\u4e86\u6e90\u4ee3\u7801\u5e76\u53d1\u73b0\uff1a<\/p>\n<pre>fb := append(opts.ForbiddenNames, \"buffalo\", \"test\", \"dev\")<\/pre>\n<p>\u770b\u6765\u540d\u79f0\u4e0d\u5141\u8bb8\u5305\u542b\u201cbuffalo\u201d\u3001\u201ctest\u201d\u6216\u201cdev\u201d\u3002<\/p>\n<p>\u4eca\u5929\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff1b\u5173\u4e8eGolang\u7684\u6280\u672f\u77e5\u8bc6\u6211\u4eec\u4f1a\u4e00\u70b9\u70b9\u6df1\u5165\u4ecb\u7ecd\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u4e00\u8d77\u5b66\u4e60\u7f16\u7a0b~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u524d\u4f4d\u7f6e\uff1a &gt; &gt; &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-207833","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/207833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=207833"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/207833\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=207833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=207833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=207833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}