Skip to content
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

RangeError: Maximum call stack size exceeded #133

Closed
HansHammel opened this issue Aug 6, 2015 · 1 comment
Closed

RangeError: Maximum call stack size exceeded #133

HansHammel opened this issue Aug 6, 2015 · 1 comment
Labels

Comments

@HansHammel
Copy link

on windows 7, npm 2.11.3, node 0.12.7, I get this error:

[...]\documentation\node_modules\map-stream\index.js:103
        throw err
              ^
RangeError: Maximum call stack size exceeded
    at String.split (native)
    at Object.win32.resolve (path.js:188:46)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:11:22)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
    at findGit (C:\Users\OB\AppData\Roaming\npm\node_modules\documentation\streams\github.js:17:10)
@tmcw
Copy link
Member

tmcw commented Aug 6, 2015

Ah, it's a windows-specific error because of the \ vs /

function findGit(filename, relative) {
relative = relative || '.git';
var newPath = path.resolve(filename, relative);
if (fs.existsSync(newPath)) {
return newPath;
} else if (newPath === '/') {
return null;
}
return findGit(filename, '../' + relative);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants