question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARNING: Found 'electron' but not as a devDependency, pruning anyway

See original GitHub issue
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

I have a problem when package my application. I have an error message “WARNING: Found ‘electron’ but not as a devDependency, pruning anyway”. Yet electron is good in the devDependency like this :

"devDependencies": {
    "@angular/cli": "~1.7.3",
    "@angular/compiler-cli": "^5.2.0",
    "@angular/language-service": "^5.2.0",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "^4.0.1",
    "electron": "^1.8.4",
    "electron-icon-maker": "0.0.4",
    "electron-packager": "^12.0.1",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "~2.5.3"
  }
> electron-packager . --overwrite --out=release --ignore=e2e/ --platform=darwin --arch=x64

Packaging app for platform darwin x64 using electron v1.8.4
WARNING: Found 'electron' but not as a devDependency, pruning anyway
Wrote new app to release/Rekord-darwin-x64

I use npm (instead yarn like electron-builder) :

> node -v && npm -version
v6.10.3
5.7.1

Thanks for your reply,

sebast1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
welcome[bot]commented, Apr 20, 2018

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you’re reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

3reactions
maleptcommented, Jul 10, 2019

Move the electron dependency from dependencies to devDependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Build issue in electron application - Stack Overflow
1.3 WARNING: Found 'electron' but not as a devDependency, pruning anyway rcedit.exe failed with exit code 1. Reserved header is not 0 or...
Read more >
WARNING: Found 'electron' but not as a devDependency ...
I have a problem when package my application. I have an error message "WARNING: Found 'electron' but not as a devDependency, pruning anyway"....
Read more >
Electron packager tutorial - Christian Engvall
In this electron packager tutorial we will look at how to create ... WARNING: Found 'electron' but not as a devDependency, pruning anyway...
Read more >
After update to snapcraft 3.9.5 electron kiosk build fails
WARNING: Found 'electron' but not as a devDependency, pruning anyway. and it won't add missing dependencies in snap.
Read more >
Warning ao gerar build | Electron - Alura
me retorna a seguinte mensagem no CMD WARNING: Found 'electron' but not as a devDependency, pruning anyway. Copiar código.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found