Matt Raible
unread,Jun 20, 2018, 6:11:55 PM6/20/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JHipster dev team
Hey everyone,
I’ve tried to upgrade an app I’m developing to JHipster v5 on both Mac and Linux. When I run “jhipster upgrade”, it keeps failing with the following error:
——
✔ Successfully regenerated application with JHipster 5.0.0-beta.2
info Removing src/main/resources/keystore.jks
info git add -A
info git commit -q -m "Generated with JHipster 5.0.0-beta.2" -a --allow-empty
husky > npm run -s precommit (node v9.8.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
events.js:165
throw er; // Unhandled 'error' event
^
Error: ERROR! Unable to commit in git:
husky > npm run -s precommit (node v9.8.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
——
If I try to run “lint-staged”, it fails:
——
➜ okta-react-photo-gallery-example git:(jhipster_upgrade) ✗ lint-staged
zsh: command not found: lint-staged
——
It even fails if I run “npm run lint-staged”:
——
npm run lint-staged
npm ERR! missing script: lint-staged
npm ERR! A complete log of this run can be found in:
——
My package.json has the following, but it doesn’t seem to be working as expected.
——
"lint-staged": {
"src/**/*.{ts,tsx,css,scss}": ["prettier --write", "git add"]
},
"scripts": {
"precommit": "lint-staged”,
——
Thanks,
Matt