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
Hi @nibanazar please run npm run clean and then run npm run setup:project
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?
@nibanazar, you just advanced to level 1!
/usr/src/app # npm run clean
[email protected] clean lerna clean --yes && npm run prebuildsh: 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.
Let me check
ok
any updates
@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
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/[email protected] migration:in-app cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/in-app-integration/in-app-integration.migration.ts
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