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
Regenerating package-lock.json or ignoring build cache resolves the issue for the initial deployment, the second one will fail again.
Console output
npm ERR! code EISGIT
npm ERR! path /vercel/path0/node_modules/dashjs
npm ERR! git /vercel/path0/node_modules/dashjs: Appears to be a git repo or submodule.
npm ERR! git /vercel/path0/node_modules/dashjs
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
No problems observed on local machine.
The text was updated successfully, but these errors were encountered:
Seems the npm postinstall step defined in package.json always installs the precommit hook into the local .git/hooks/pre-commit folder. This causes a .git folder to exist within node_modules/dashjs, which in turn causes the OP's error where dashjs is a dependency.
This postinstall step should probably only be done if being installed "locally" ie for development, rather than as a dependency, since library users wouldn't need the commit hook anyway.
Environment
Steps to reproduce
Observed behavior
Build fails throwing the
EISGIT
error.Regenerating
package-lock.json
or ignoring build cache resolves the issue for the initial deployment, the second one will fail again.Console output
No problems observed on local machine.
The text was updated successfully, but these errors were encountered: