Closed mikeumus closed 7 years ago
Is this Windows? If so, see PR #29.
Hello @codebling
I got this error with git-hooks@1.1.8.
Windows 7
Any idea?
$ npm install --save-dev git-hooks@1.1.8
> git-hooks@1.1.8 postinstall C:\dev\source\xxxx\node_modules\git-hooks
> ./bin/git-hooks --install
'.' is not recognized as an internal or external command,
xxxx@0.0.0 C:\dev\source\xxxx
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @angular/core@2.4.10 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @angular/core@2.4.10 requires a peer of zone.js@^0.7.2 but none was installed.
npm WARN postcss-reporter@4.0.0 requires a peer of postcss@^6.0.0 but none was installed.
npm WARN @aviato/ci@1.1.2-1 requires a peer of codelyzer@~3.1.1 but none was installed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\dev\\apps\\node\\node.exe" "C:\\dev\\apps\\node\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "@aviato/ci@1.1.2-1"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! git-hooks@1.1.8 postinstall: `./bin/git-hooks --install`
npm ERR! Exit status 1
@Chabane did you check the PR I mentioned above? There are issues with git-hooks on Windows and author does not seem to have resources to test/maintain Windows compatibility, nor willing to attempt Windows compatibility on a "best effort" basis, so this will never work. You can try my fork but I am not currently maintaining it.
Thanks @codebling for your reply :+1:
@tarmolov is it possible to merge the PR #29? Many people have this issue.
I have two requirements for before adding windows support:
@tarmolov
@Chabane feel free to use my fork, let me know if there are any issues.
@tarmolov thanks for your reply :-) It's a pity. The in-house development uses Windows, mostly :-1: @codebling thanks for your help. Unfortunately, I can only use an official repository.
@Chabane anyone can upload a module to the npm repository. I can publish the fork to npm, if that helps, although it will be no more official than it is now.