我已经完成了http://jhipster.github.io/installation/上列出的步骤,没有任何错误。
然后,我尝试在jhipster主页上开始的简单步骤:
安装JHipster npm install -g generator-jhipster
创建一个新目录并进入它mkdir myApp&& cd myApp运行
JHipster并按照屏幕上的说明yo jhipster
但是,当我运行最后一条指令时,我收到以下错误:
yo jhipster
Error jhipster
You don't seem to have a generator with the name jhipster installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 0 registered generators run yo with the `--help` option.
我该如何解决这个问题?
由于
答案 0 :(得分:5)
如果您使用的是ubuntu,请务必使用sudo权限安装jhipster ...
所以你必须像普通用户一样sudo chown -R yourUser:yourGroup /usr/lib/node_modules && npm install -g generator-jhipster
...
之后,您可以生成项目