nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
369 stars 52 forks source link

[Bug] Unable to create Electron app #259

Open iameduardod opened 3 years ago

iameduardod commented 3 years ago
  1. nx generate app
  2. Choose web, name it myapp
  3. nx generate app --target web-myapp
  4. Choose Electron

Fails with

npm ERR! code E403 npm ERR! 403 403 Antimalware-VirusFound - GET http://registry.npmjs.org/7zip-bin/-/7zip-bin-5.0.3.tgz npm ERR! 403 In most cases, you or one of your dependencies are requesting npm ERR! 403 a package version that is forbidden by your security policy. npm ERR! 403 npm ERR! 403 It was specified as a dependency of 'app-builder-lib' npm ERR! 403

Command failed: npm install --legacy-peer-deps

iameduardod commented 3 years ago

Following up @NathanWalker

NathanWalker commented 3 years ago

Those same steps result in electron app here, you could try naming the app when generating electron:

nx generate app
Choose web, name it myapp
nx generate app desktop --target web-myapp
Choose Electron

note the name desktop (can be any name of your choice) before --target arg.