2017-02-03 14 views
1

https://jhipster.github.io/jdl-studio/からエンティティ(Javaクラス)を生成しようとしていますが、jhipster-jdl.jhファイルを作成してエンティティを生成し始めます。まず、マニュアルに従って私は私のエンティティを生成するには、このエンティティを生成するためにgenerator-jhipster-umlをインストールできません

yo jhipster:import-jdl my_file.jdl

を使用していますが、この文は、いくつかの.jsonファイルを生成し、それがすべてですが、私は、Javaクラス、DTO、サービスおよびその他のファイルが必要です。私の友人は、この使用することを教えてくれ:

yo jhipster-uml my_file.jdl

をしかし、その後、私はこのエラーを取得:

Error jhipster-uml .\jhipster-jdl.jh 

You don’t seem to have a generator with the name “jhipster-uml” installed. 
But help is on the way: 

You can see available generators via npm search yeoman-generator or via http://yeoman.io/gene 
Install them with npm install generator-jhipster-uml. 

To see all your installed generators run yo without any arguments. 

それでは、私は、この発電機をインストールしようとしたが、私は他のエラーを取得する:

npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\M\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\ 
npm-cli.js" "install" "generator-jhipster-uml" 
npm ERR! node v6.9.4 
npm ERR! npm v4.1.2 
npm ERR! code E404 

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/generator-jhipster-uml 
npm ERR! 404 
npm ERR! 404 'generator-jhipster-uml' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, http url, or git url. 

どうすればよいですか?私はドキュメンテーションで何が記述されているかすべてを行いました。私はJhipsterバージョン3を使用していません。この問題を解決するには、上位バージョンを移行する必要がありますか?

答えて

1

yo jhipster:import-jdl my_file.jdlは、JDLをインポートし、エンティティのJSONファイルとフロントエンド/バックエンドファイルを生成する必要があります。失敗した場合は、問題を開いてください。

jhipster-umlはyeoman-generatorではないため、その前にyoを付けずに実行します。それで、generator-jhipster-umlのインストールが失敗する理由もあります。 、follow the instructions in the docsをインストールするには:

npm install -g jhipster-uml 

あなたはまだプロジェクトを開始していない場合は、私がV4へのアップグレードをお勧めします。必要に応じてAngular 1を使用することができます。

関連する問題