naviapps / create-nw-react-app

Create NW.js React apps with no build configuration.
MIT License
141 stars 14 forks source link

yarn build Breaks on Windows #50

Closed serg06 closed 2 years ago

serg06 commented 2 years ago

I created a project using this template and immediately ran yarn build. I got this:


  downloading [====================] 100% 0.0s
C:\repo\electron-comparisons\nwjs\app\node_modules\nw-react-scripts\scripts\build.js:19
  throw err;
  ^

[Error: EPERM: operation not permitted, symlink 'Versions\Current\Helpers' -> 'C:\repo\electron-comparisons\nwjs\app\cache\0.59.1-normal\osx64\nwjs-v0.59.1-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Helpers'] {
  errno: -4048,
  code: 'EPERM',
  syscall: 'symlink',
  path: 'Versions\\Current\\Helpers',
  dest: 'C:\\repo\\electron-comparisons\\nwjs\\app\\cache\\0.59.1-normal\\osx64\\nwjs-v0.59.1-osx-x64\\nwjs.app\\Contents\\Frameworks\\nwjs Framework.framework\\Helpers'
}```
dynamite-ready commented 2 years ago

If you haven't solved this issue already, this looks like a permissions issue. You need to run yarn build from a terminal with Run As Administrator privileges.

serg06 commented 2 years ago

@dynamite-ready that worked, thanks.