Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to create Electron app #259

Open
iameduardod opened this issue Apr 27, 2021 · 2 comments
Open

[Bug] Unable to create Electron app #259

iameduardod opened this issue Apr 27, 2021 · 2 comments

Comments

@iameduardod
Copy link

  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
Copy link
Author

Following up @NathanWalker

@NathanWalker
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants