I have gone through the steps as listed on http://jhipster.github.io/installation/ without any errors.
我已经在http://jhipster.github上列出了这些步骤。io /安装/没有任何错误。
Then, I try the simple steps to get started that are on the jhipster home page, being:
然后,我尝试简单的步骤,开始在jhipster的主页,存在:
Install JHipster npm install -g generator-jhipster
安装JHipster npm安装-g generator-jhipster。
Create a new directory and go into it mkdir myApp && cd myApp Run
创建一个新的目录并进入它的mkdir myApp && cd myApp运行。
JHipster and follow instructions on screen yo jhipster
JHipster和按照屏幕上的指示,yo JHipster。
However, when I run the last instruction, I get the following error:
然而,当我运行最后一条指令时,我得到如下错误:
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.
How can I fix this?
我怎么解决这个问题?
Thanks
谢谢
1 个解决方案
#1
5
If you are using ubuntu, surely you have installed jhipster using sudo privileges... So you have to do sudo chown -R yourUser:yourGroup /usr/lib/node_modules && npm install -g generator-jhipster
as normal user... After that, you can generate your project
如果你正在使用ubuntu,你肯定已经使用sudo特权安装了jhipster…所以你必须做sudo chown -R yourUser:yourGroup /usr/lib/node_modules & npm安装-g generator-jhipster作为普通用户…在此之后,您可以生成您的项目。
#1
5
If you are using ubuntu, surely you have installed jhipster using sudo privileges... So you have to do sudo chown -R yourUser:yourGroup /usr/lib/node_modules && npm install -g generator-jhipster
as normal user... After that, you can generate your project
如果你正在使用ubuntu,你肯定已经使用sudo特权安装了jhipster…所以你必须做sudo chown -R yourUser:yourGroup /usr/lib/node_modules & npm安装-g generator-jhipster作为普通用户…在此之后,您可以生成您的项目。