Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'husky' is not recognized as an internal or external command, #20

Open
Jay-study-nildana opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@Jay-study-nildana
Copy link

For some reason, I kept running into the following error.


PS D:\ToDelete\LaunchPad\next> npm install
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm WARN deprecated [email protected]: Deprecated due to three.js version incompatibility. Please use v0.8.0, instead.
npm WARN deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'D:\\ToDelete\\LaunchPad\\next\\node_modules\\next',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\ToDelete\LaunchPad\next\node_modules\next\dist\esm\server'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\ToDelete\\LaunchPad\\next\\node_modules\\next\\dist\\esm\\server'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\ToDelete\LaunchPad\next\node_modules\@strapi\blocks-react-renderer
npm ERR! command failed
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.

npm ERR! A complete log of this run can be found in: C:\Users\vijay\AppData\Local\npm-cache\_logs\2024-11-21T06_45_46_647Z-debug-0.log

Then, I decided to do this

npm install --save-dev husky

The app worked after that. Not sure, if this is just on my PC or this is general issue. Just putting it here to see if it helps others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant