You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this repo includes a yarn.lock file and git hooks, any commits will require the yarn command.
Otherwise it will generate an error:
mmurphy-OSX:git-pre-commit mmurphy$ git commit
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn yarn ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
at onErrorNT (internal/child_process.js:407:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Should the dependency on yarn be documented in the README or a contributing file? Or give a better error from pre-commit-utils/package-manager-utils.js if yarn is not installed?
WDYT?
The text was updated successfully, but these errors were encountered:
felquis
added a commit
to felquis/git-pre-commit
that referenced
this issue
Jun 3, 2020
closeskazazor#43 I did this PR working with nodejs 14.x
closeskazazor#42 since there's no dependency on yarn
closeskazazor#41 package-lock.json should always be commited
closeskazazor#40 require-dir is not a dependency on this source
About kazazor#3 this PR was tested on PowerShell on Windows 10.
Since this repo includes a
yarn.lock
file and git hooks, any commits will require theyarn
command.Otherwise it will generate an error:
Should the dependency on
yarn
be documented in the README or a contributing file? Or give a better error frompre-commit-utils/package-manager-utils.js
if yarn is not installed?WDYT?
The text was updated successfully, but these errors were encountered: