Conversation
|
Can you provide some context of what you are trying to do? The current code loops through the given dir and copies files and dirs when needed,. |
|
I have a folder called githooks. When I use this script, I get an error for copying the first file inside the |
|
Also: nodejs/node#53127 |
|
Interessting, curious about that output. Also, it should make more sense then, if |
Installing Git hooks...
Error copying Git hooks: Error: ENOENT: no such file or directory, copyfile '.githooks/pre-commit.d/check-for-unresolved-conflicts' -> '.git/hooks/pre-commit.d/check-for-unresolved-conflicts'
at Object.copyFileSync (node:fs:2993:3)
at copy (/home/ccomm/Dokumente/opendtu-react-native/node_modules/node-git-hooks/install-git-hooks.js:57:6)
at copyDir (/home/ccomm/Dokumente/opendtu-react-native/node_modules/node-git-hooks/install-git-hooks.js:51:7)
at copyDir (/home/ccomm/Dokumente/opendtu-react-native/node_modules/node-git-hooks/install-git-hooks.js:46:7)
at installGitHooks (/home/ccomm/Dokumente/opendtu-react-native/node_modules/node-git-hooks/install-git-hooks.js:33:5)
at Object.<anonymous> (/home/ccomm/Dokumente/opendtu-react-native/node_modules/node-git-hooks/bin/install.js:5:8)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12) {
errno: -2,
syscall: 'copyfile',
code: 'ENOENT',
path: '.githooks/pre-commit.d/check-for-unresolved-conflicts',
dest: '.git/hooks/pre-commit.d/check-for-unresolved-conflicts'
}It works fine after I run |
No description provided.