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

npm error 'husky' is not recognized as an internal or external command #155

Open
AlirezaEthDev opened this issue Nov 3, 2024 · 2 comments

Comments

@AlirezaEthDev
Copy link

I tried to install @ton/blueprint using npm i @ton/blueprint on Windows 10 but this error thrown:

npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint\\node_modules\\protobufjs',
npm warn cleanup     [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Pc\AppData\Roaming\npm\node_modules\@ton\blueprint\node_modules\protobufjs'] {
npm warn cleanup       errno: -4082,
npm warn cleanup       code: 'EBUSY',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint\\node_modules\\protobufjs'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint\\node_modules',
npm warn cleanup     [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Pc\AppData\Roaming\npm\node_modules\@ton\blueprint\node_modules\protobufjs'] {
npm warn cleanup       errno: -4082,
npm warn cleanup       code: 'EBUSY',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint\\node_modules\\protobufjs'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\Pc\AppData\Roaming\npm\node_modules\@ton\blueprint\node_modules\@tact-lang'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\@ton\\blueprint\\node_modules\\@tact-lang'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\Pc\AppData\Roaming\npm\node_modules\@ton\blueprint\node_modules\@tact-lang\compiler
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c husky
npm error 'husky' is not recognized as an internal or external command,
npm error operable program or batch file.
npm error A complete log of this run can be found in: C:\Users\Pc\AppData\Local\npm-cache\_logs\2024-11-03T07_52_08_676Z-debug-0.log

Is this error because of npm or blueprint?

@dd-tar
Copy link

dd-tar commented Dec 6, 2024

Simply install husky
npm install husky
worked for me

@iamIcarus
Copy link

Try with Git Bash or WSL. Husky hooks often rely on Unix shell syntax not directly compatible with Windows cmd.

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

3 participants