di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
5.98k stars 318 forks source link

[Bug]: Illegal operation on a directory #206

Open slacksystem opened 1 year ago

slacksystem commented 1 year ago

Opencommit Version

2.2.10

Node Version

v20.1.0

NPM Version

9.6,4

What OS are you seeing the problem on?

Windows

What happened?

In powershell, when typing oco hook set I get the error:

Error: EISDIR: illegal operation on a directory, symlink 'C:\Users\<USERNAME>\AppData\Roaming\npm\node_modules\opencommit\out\cli.cjs' -> 'E:\Documents\code\<PROJECTNAME>\.git\hooks\prepare-commit-msg'

Expected Behavior

I would have expected it to set the hook

Current Behavior

It fails with the above error

Possible Solution

No response

Steps to Reproduce

Relevant log output

No response

seho-dev commented 1 year ago

Please check the .npmrc file

di-sukharev commented 1 year ago

@seho-dev hi bro, wdym?

github-actions[bot] commented 1 year ago

Stale issue message