Skip to content

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

Open
@Jay-study-nildana

Description

@Jay-study-nildana

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions