I'm trying to install mattlewis92's angular 14.0+ calendar, which suggests the use of the command ng add angular-calendar. However when doing so I got an error:
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c husky install
npm ERR! 'husky' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
I realized that I don't have husky as a dependency so I added it according to husky's docs. Unfortunately after installing husky I got a new error:
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c husky install
npm ERR! husky - .git can't be found (see https://typicode.github.io/husky/#/?id=custom-directory)
I followed the suggested link above huksy docs/ Recipes/ Custom directory, but I have no common problem as package.json as well as .git and .husky are all in the same directory level -> in my project's root folder.
All suggestions are welcome!
You could
1. Update your node.js version
This is the accepted node js version found over their website
Node.js (>=14.19.0 or >=16.9.0)So if, you do not have those version -> update it.
2. Use a former version
You do not want to update your node.js version ?
Downgrade to the following ->
angular-calendar: 0.29.03. Dirty Workaround
The library cannot install the
calendar-utils.Funnily enough, running
npm i angular-calendaroutside an angular project worked just fineSo what you can do.
npm i angular-utilssomewhere outside an angular projectnode_modules,package.json&package-lock.jsoninside your projectnpm i angular-calendarng add angular-calendarshould work just fine.