naviapps / create-nw-react-app

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

Yarn build failed with error no 4048 #62

Open sumitgpl opened 1 year ago

sumitgpl commented 1 year ago

without any default code changes, just execute yarn build to see how build will be..getting below error. Building on windows 11.

[Error: EPERM: operation not permitted, symlink 'Versions\Current\Resources' -> 'x:\app\cache\0.76.0-normal\osx64\nwjs-v0.76.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'] { errno: -4048, code: 'EPERM', syscall: 'symlink', path: 'Versions\Current\Resources', dest: 'x:\app\cache\0.76.0-normal\osx64\nwjs-v0.76.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

sumitgpl commented 1 year ago

new update ...

after removing mox from "platforms" under packages.json. Its working!

naviapis commented 1 year ago

@sumitgpl It could be a permissions issue. Please try running the command with administrator privileges.

For Windows PowerShell -> Run as Administrator