Translate

[JHipster] 'yarn global upgrade generator-jhipster' 업그레이드 시 'No lockfile found' 오류





JHipster 새로운 버전이 나왔다고 해서 업그레이드를 하기위해 가이드대로 입력을 했더니 정상적으로 수행이 되지 않았다.



1004lucifer

C:\Users\1004lucifer\IdeaProjects\jhipster-microservice>yarn global upgrade generator-jhipster
yarn global v0.27.5
info No lockfile found.
error Couldn't find a package.json file in "C:\\Users\\1004lucifer\\AppData\\Local\\Yarn\\config\\global"
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

C:\Users\1004lucifer\IdeaProjects\jhipster-microservice>






jhipster 를 설치 후 yarn 을 설치했더니 yarn 설치된 패키지중에 jhipster 가 없는 듯 했다.
하긴.. yarn을 통해 설치한 패키지가 하나도 없는 것 같다.


이것저것 알아보다가 그냥 npm으로 다시 설치해보니 정상적으로 업데이트가 된 것을 볼 수 있었다.


1004lucifer


C:\Users\1004lucifer\IdeaProjects\jhipster-microservice>npm install -g generator-jhipster
C:\Users\1004lucifer\AppData\Roaming\npm\jhipster -> C:\Users\1004lucifer\AppData\Roaming\npm\node_modules\generator-jhipster\cli\jhipster.js
+ generator-jhipster@4.8.0
updated 9 packages in 40.33s

C:\Users\1004lucifer\IdeaProjects\jhipster-microservice>




댓글