-
Notifications
You must be signed in to change notification settings - Fork 191
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
Error: spawn ENAMETOOLONG #585
Comments
It seems to be an error occurring on Windows. By replacing the Git.prototype.rm section in the node_modules\gh-pages\lib\git.js file with the code below, the issue is resolved.
|
Here's a patch for 6.3.0 that simplifies the rm to simply remove Seems to work for my case...YMMV. diff --git a/lib/git.js b/lib/git.js
index d4c5724272d00bd1f0d76c47dab47d21ccd094d9..d86ac2b0bd7cbc02f34a50dac6980965102ee964 100644
--- a/lib/git.js
+++ b/lib/git.js
@@ -143,7 +143,7 @@ Git.prototype.rm = function (files) {
if (!Array.isArray(files)) {
files = [files];
}
- return this.exec('rm', '--ignore-unmatch', '-r', '-f', '--', ...files);
+ return this.exec('rm', '--ignore-unmatch', '-r', '-f', '--', '.');
};
/** I'm using pnpm, so I put the above in "pnpm": {
"patchedDependencies": {
"gh-pages": "patches/gh-pages.patch"
}
} |
After updating to version 6.2.0, when I call the
gh-pages --nojekyll -d deploy
command, I get the following error:The text was updated successfully, but these errors were encountered: