diff --git a/src/cli/commands/policies.js b/src/cli/commands/policies.js index 62b8617f30..b9d5d99424 100644 --- a/src/cli/commands/policies.js +++ b/src/cli/commands/policies.js @@ -155,7 +155,7 @@ const {run, setFlags, examples} = buildSubCommands('policies', { const rcPath = `${config.lockfileFolder}/.yarnrc`; reporter.log(`Updating ${chalk.magenta(rcPath)}...`); - rc['yarn-path'] = path.relative(config.lockfileFolder, yarnPath); + rc['yarn-path'] = path.relative(config.lockfileFolder, yarnPath).split(path.sep).join('/'); await fs.writeFilePreservingEol(rcPath, `${stringify(rc)}\n`); reporter.log(`Done!`);