-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
npm run grunt fails at eslint-samples:source with "prefixLength of undefined". #3692
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Hi @JoshuaGrams how did you clone the repository? This definitely seems like a line-endings problem. I develop on Windows as well. I'd also check to see what value you have for |
I have |
Oh, huh. I switched it to DOS line endings again and now the build works. I wonder what I did wrong the other two times I tried it? Well, thanks for your time. |
For anyone who reached here:
Had then another error in the succeeding test task, but anyway :) |
I cloned the repository from github, did
npm install
, thennpm run grunt
. It fails ateslint-samples:source
(npm run grunt eslint-samples:source
gets the same error faster) with "Warning: Cannot read property 'prefixLength' of undefined Use --force to continue."Then it says "Aborted due to warnings." and the stacktrace is from
node_modules/npm-lifecycle/index.js
which doesn't look helpful.I did find this comment #3387 (comment) and the following one, which suggests that it's a line-endings thing. But I checked and there are no CRLFs in the
src/
orlib/
directories, and adding them produced many errors wanting the CRs removed.Any suggestions?
The text was updated successfully, but these errors were encountered: