N
Novu12mo ago
Niba Nazar

husky not found error

When trying to upgrade novu from 14 to 16 , tried ro follow the migration steps, in which when I execute npm run setup: project , getting husky not found error
9 Replies
Pawan Jain
Pawan Jain12mo ago
Hi @nibanazar please run npm run clean and then run npm run setup:project
Niba Nazar
Niba Nazar12mo ago
Ok let me try Its not working Sh: lerna: not found error The support chat which was available on the UI is not there now?
Novu_Bot
Novu_Bot12mo ago
@nibanazar, you just advanced to level 1!
Niba Nazar
Niba Nazar12mo ago
/usr/src/app # npm run clean
novuhq@1.0.0 clean lerna clean --yes && npm run prebuild
sh: lerna: not found still the same - pnpm 7.28.0 - prettier 2.8.7 - rimraf 3.0.2 - shelljs 0.8.5 - stop-only 3.3.1 - tar 6.1.13 - ts-jest 27.1.5 - ts-node 10.9.1 - typescript 4.9.5 - wait-port 0.3.1 . prepare$ husky install . prepare: sh: husky: not found  ELIFECYCLE  Command failed.
Pawan Jain
Pawan Jain12mo ago
Let me check
Niba Nazar
Niba Nazar12mo ago
ok any updates
Pawan Jain
Pawan Jain12mo ago
@nibanazar I tried multiple times on my local machine, But I could not reproduce it Can you please try removing all repository and its node_modules, clone again and run npm run setup:project
Niba Nazar
Niba Nazar12mo ago
i have tried it but still getting the husky not found error hi why it is showing as node_env as local where in the env file copied to the docker/local/deployment location node_env is mentioned as production
@novu/api@0.16.0 migration:in-app cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/in-app-integration/in-app-integration.migration.ts
Pawan Jain
Pawan Jain12mo ago
This is happening because we have hardcoded this in migration script https://github.com/novuhq/novu/blob/next/apps/api/package.json#L27
GitHub
novu/apps/api/package.json at next · novuhq/novu
The open-source notification infrastructure with fully functional embedded notification center - novu/apps/api/package.json at next · novuhq/novu