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

[Bug] .yarnrc generated in Windows includes yarn_path containing "\\" instead of "/" #858

Closed
1 task done
exKAZUu opened this issue Jan 31, 2020 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@exKAZUu
Copy link

exKAZUu commented Jan 31, 2020

  • I'd be willing to implement a fix

Describe the bug

.yarnrc generated in Windows includes yarn_path containing "\" instead of "/", e.g., yarn-path ".yarn\\releases\\yarn-berry.js".
However, this causes a problem where a non-Windows environment cannot launch berry as follows.

$ yarn
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/mnt/c/XXX/.yarn\releases\yarn-berry.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

To Reproduce

  1. Create a npm package with Yarn v1
  2. yarn policies set-version berry

We cannot reproduce this issue in Sherlock because this issue occured only on Windows,

Screenshots

There is no applicable thing.

Environment if relevant (please complete the following information):

  • OS: Windows
  • Node version v13.3.0
  • Yarn version 2.0.0-rc.28

Additional context

Nothing.

@exKAZUu exKAZUu added the bug Something isn't working label Jan 31, 2020
@exKAZUu
Copy link
Author

exKAZUu commented Jan 31, 2020

@exKAZUu
Copy link
Author

exKAZUu commented Jan 31, 2020

Duplicated to yarnpkg/yarn#7777

@exKAZUu
Copy link
Author

exKAZUu commented Jan 31, 2020

Fixed in yarnpkg/yarn#7862

@exKAZUu exKAZUu closed this as completed Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant