electron-react-boilerplate: yarn command fails in 3.0.1 on Windows network drives
Prerequisites
- Using yarn
- Using an up-to-date
mainbranch - Using latest version of devtools. Check the docs for how to update
- Tried solutions mentioned in #400
- For issue in production release, add devtools output of
DEBUG_PROD=true yarn build && yarn start
Expected Behavior
yarn command completes succesfully.
Current Behavior
yarn command shows an error, looks like it can’t create symlinks
Steps to Reproduce
-
git clone --depth 1 --branch main https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name -
cd your-project-name -
yarn
Stacktrace: https://gist.github.com/denexapp/d8d9ba6001d503ad601073f7f9af4dcc
Possible Solution (Not obligatory)
I have no idea how to fix it.
Update: yarn command should be run in an elevated command line
Context
I was trying to use this boilerplate. It doenst work.
Your Environment
- Node version : 14.17.0 LTS
- electron-react-boilerplate version or branch : 3.0.1
- Operating System and version : Windows 10 20H2 19042.1165
- Link to your project : https://github.com/electron-react-boilerplate/electron-react-boilerplate
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (3 by maintainers)
@LarryKlugerDS linking is actually very common amongst package managers and build infrastructure. ERB should be able to symlink without any issues. I’ll investigate this further to see how npm does this
Update: I’ve found a workaround.
yarncommand should be run in an elevated command line. I’ve updated the original postI’ve tried to use
yarn installinstead ofyarn, I’ve got the same errorI’m not sure this is the case, the stacktrace I attached above (link) shows that it does install dependencies.
Anyway I will try to use the
yarn installcommand and I’ll post results here