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

It does not write pre-commit file in hooks folder on Windows 7 #43

Closed
s-a opened this issue Aug 4, 2015 · 7 comments
Closed

It does not write pre-commit file in hooks folder on Windows 7 #43

s-a opened this issue Aug 4, 2015 · 7 comments

Comments

@s-a
Copy link

s-a commented Aug 4, 2015

npm install --save-dev pre-commit
/
> spawn-sync@1.0.13 postinstall c:\git\iron-node\node_modules\pre-commit\node_modules\cross-spawn\node_modules\spawn-sync
> node postinstall


> pre-commit@1.1.1 install c:\git\iron-node\node_modules\pre-commit
> node install.js

pre-commit:
pre-commit: Failed to symlink the hook file in your .git/hooks folder because:
pre-commit: EPERM, operation not permitted 'c:\git\iron-node\.git\hooks\pre-commit'
pre-commit: The hook was not installed.
pre-commit:
pre-commit@1.1.1 node_modules\pre-commit
├── which@1.1.1 (is-absolute@0.1.7)
└── cross-spawn@2.0.0 (cross-spawn-async@2.0.0, spawn-sync@1.0.13)
@3rd-Eden
Copy link
Member

3rd-Eden commented Aug 4, 2015

What is the output of your npm install?

@s-a
Copy link
Author

s-a commented Aug 4, 2015

Sorry I was too fast :) Weird because I have admin rights here

@3rd-Eden
Copy link
Member

3rd-Eden commented Aug 4, 2015

I had the same thing on my Windows 7 VM until I ran my Powershell as Administrator.

@s-a
Copy link
Author

s-a commented Aug 4, 2015

Just did it and it works 👍

@quantuminformation
Copy link

Is this lib supposed to work with windows?

@quantuminformation
Copy link

The hooks are not running on my friends windows machine, its fine on my mac.

@mtvphnx
Copy link

mtvphnx commented Jul 16, 2020

I had the same thing on my Windows 7 VM until I ran my Powershell as Administrator.

Thanks, bro!

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

4 participants