dongtang5776 2015-02-06 11:07
浏览 158
已采纳

Beego(Golang):在Windows中通过CLI创建新项目

I wanted to play with the Beego webframework. A simple command in the shell can setup a new project directory. If I run the following commandin Window's Powershell I get an error, because the command is unknown:

bee new beego_project

How can I register this command to make use of it?

  • 写回答

1条回答 默认 最新

  • 普通网友 2015-02-06 15:46
    关注

    Make sure your environment variables are correctly set in your Powershell setup.
    See for instance "how to modify GOPATH in powershell"

    • GOPATH needs to be set
    • %GOPAHT%\bin needs to be added to the PATH and bee must be in that folder.

    Note that you can set those variables in your %USERPROFILE%\Documents\WindowsPowerShell\Profile.ps1, which is similar to a ~\.bashrc.

    The OP adds in the comments:

    I just needed to add %GOPATH%\bin to the %PATH% variable.
    Now it works also under %GOPATH%

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?