Pruning fails to remove platform specific optional packages
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.
Starting from v12.0.0 I am getting
Failed to locate module "7zip-bin-linux" from "C:\p\rh\dpi\transpiled\node_modules\7zip-bin"
This normally means that either you have deleted this package already somehow (check your ignore settings if using electron-packager). Or your module installation failed.
when running on windows.
It seems the problem is in traversing development dependencies when --prune option is used. –no-prune fixes the issue, but only for development builds.
v11.2.0 works fine for both options.
Console output when you run electron-packager with the environment variable DEBUG=electron-packager,flora-colossus
.
... REMOVED ...
electron-packager Downloading Electron with options {"strictSSL":true,"platform":"win32","arch":"x64","version":"1.8.4"} +0ms
Packaging app for platform win32 x64 using electron v1.8.4
electron-packager Creating C:\Users\eskimo\AppData\Local\Temp\electron-packager\win32-x64-template +409ms
electron-packager Extracting C:\Users\eskimo\.electron\electron-v1.8.4-win32-x64.zip to C:\Users\eskimo\AppData\Local\Temp\electron-packager\win32-x64-template +3ms
electron-packager Initializing app in C:\Users\eskimo\AppData\Local\Temp\electron-packager\win32-x64\devsuite-win32-x64 from C:\Users\eskimo\AppData\Local\Temp\electron-packager\win32-x64-template template +0ms
electron-packager Ignored paths based on the out param: [ 'C:\\p\\rh\\dpi\\dist\\win32-x64' ] +2s
... REMOVED ...
flora-colossus walk reached: c:\p\rh\dpi\transpiled\node_modules\bluebird Type is: DEV +0ms
flora-colossus walk reached: c:\p\rh\dpi\transpiled\node_modules\builder-util Type is: DEV +4ms
flora-colossus walk reached: c:\p\rh\dpi\transpiled\node_modules\7zip-bin Type is: DEV +1ms
Failed to locate module "7zip-bin-linux" from "c:\p\rh\dpi\transpiled\node_modules\7zip-bin"
This normally means that either you have deleted this package already somehow (check your ignore settings if using electron-packager). Or your module installation failed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
conda env update --prune does not remove installed ... - GitHub
I'm submitting a... bug report feature request Current Behavior conda env update --prune does not remove packages no longer referenced in ...
Read more >Pruning objects to reclaim resources | Building applications
Prune all replication controllers that no longer have a DeploymentConfig object, has status of Complete or Failed , and has a replica count...
Read more >Nixpkgs 22.11 manual - NixOS
It is possible to permanently allow individual unfree packages, while still blocking unfree packages by default using the allowUnfreePredicate configuration ...
Read more >Troubleshooting GitLab Runner
The error is caused by the time package in Go. Go uses the IANA Time Zone database to load the configuration of the...
Read more >3 Common Tasks — The Yocto Project ® 4.1.999 documentation
3 Common Tasks . This chapter describes fundamental procedures such as creating layers, adding new software packages, extending or customizing images, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed with https://github.com/MarshallOfSound/flora-colossus/pull/3
Also, this does not seem to be related to this particular bug (it’s related to optional dependencies), when you do create a minimal testcase, can you please file a new bug and follow the issue template?