-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Problem parsing .yarnrc #4884
Comments
|
@mobitum we need the actual .yarnrc file to be able to investigate. Copy/pasting it in the issue also wouldn't work since it would remove any special characters in it. You may upload it to a Gist directly or to another file sharing service and share the link with us. I work on Windows and I have custom |
|
Also, providing the full error, including the path and your project path would be useful since failing with a |
|
This is test I performed - created empty .yarnrc file from my Power Shell console: PS C:\VS\INTRANET\Intranet\Intranet\Intranet> yarn Here are .yarnrc and yarn-error.log files from my PC: |
|
any luck ? I'm facing the same problem :( |
|
I've noticed before that an empty
edit: Just a suggestion if you plan on actually using that line in yarnrc; |
|
No luck with that even latest Yarn version: Mode LastWriteTime Length Name d----- 08.11.2017 15:34 angular PS C:\VS\INTRANET\Intranet\Intranet\Intranet> cat ..yarnrc |
|
Might be an issue with windows CRLF line endings? |
|
A EDIT: I use yarn v1.6.0 |
|
I had the same problem. I solved it by change the encoding of the file. |
|
Seeing this on BSD (but bizarrely only for one user). |
|
I'm seeing the same @mudcovered is seeing on FreeBSD with version 1.22.4 installed from FreeBSD ports collection. Every time I launch yarn I get:
|
|
And having a look at the sources the commit 2cb2fc4 could be the one introducing the regression. That's what corresponds to line |
I confirm that manually reverting commit 2cb2fc4 in cli.js in the distribution makes this issue go away. But that commit was created to fix another issue, so I'm not filing a pull request. Someone knowing the code better should take a look. @arcanis as the author of the commit are you willing to have a look at this? |
Add a patch to fix global packages upgrade PR: 245425 Submitted by: madpilot@ Obtained from: yarnpkg/yarn#4884 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@531699 35697150-7ecd-e111-bb59-0022644237b5
Add a patch to fix global packages upgrade PR: 245425 Submitted by: madpilot@ Obtained from: yarnpkg/yarn#4884
Add a patch to fix global packages upgrade PR: 245425 Submitted by: madpilot@ Obtained from: yarnpkg/yarn#4884 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@531699 35697150-7ecd-e111-bb59-0022644237b5
Add a patch to fix global packages upgrade PR: 245425 Submitted by: madpilot@ Obtained from: yarnpkg/yarn#4884
|
Figured out what is going on with this problem on my system:
So I think there are 2 issues here.
According POSIX: Is this similar enough to this issue to be tracked here or should I open this as a new issue? |
|
Closing as fixed in v2 where we only read |
Add a patch to fix global packages upgrade PR: 245425 Submitted by: madpilot@ Obtained from: yarnpkg/yarn#4884
Do you want to request a feature or report a bug?
Seems like bug in parsing .yarnrc file in project folder.
I'm using yarn 1.3.2 on Windows.
What is the current behavior?
I created .yarnrc file with single line:
--install.modules-folder "./resources"
I'm getting following error on simple 'yarn' command:
"error An unexpected error occurred: "Unknown token: { line: 1, col: 0, type: 'INVALID', value: undefined } 1:0 in C:\VS...."
I tried even empty .yarnrc with the same result.
My package.json looks like this:
{
"name": "intranet",
"version": "1.0.0",
"license": "UNLICENSED",
"devDependencies": {},
"dependencies": {
"angular": "^1.6.6",
"angular-material": "^1.1.5"
}
}
If the current behavior is a bug, please provide the steps to reproduce.
Just put empty .yarnrc file in your project directory and run yarn command
What is the expected behavior?
.yarnrc should be parsed against available options
Please mention your node.js, yarn and operating system version.
Yarn version:
1.3.2
Node version:
8.9.1
Platform:
win32 x64
The text was updated successfully, but these errors were encountered: