Remove optional dependencies.
See original GitHub issue- Install nodemon on mac (mac only dependency fsevents will be installed)
- run shrinkwrap and shrinkpack
- pull down on a linux machine and run npm install
- Get the following error:
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.9
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
Have you run into this sort of thing before? Is it even possible to fix such a thing?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Remove "optional" dependencies : r/linux4noobs - Reddit
Hi there, I'm currently running Manjaro i3 community edition, which came with i3-gaps, rxvt-unicode, and a whole bunch of software with it.
Read more >Removing dependencies without removing optionals of other ...
So, is it possible to remove the dependencies along with a package without removing the dependencies if they are an optional as well...
Read more >Maven – Optional Dependencies and Dependency Exclusions
This section discusses optional dependencies and dependency exclusions. This will help users to understand what they are and when and how to use...
Read more >Uninstalling packages and dependencies - npm Docs
To uninstall an unscoped global package, on the command line, use the uninstall command with the -g flag. Include the scope if the...
Read more >How to remove a package and all unneeded dependencies
If you want to not remove optional dependencies I think you'll have to massage the list yourself, remove anything you want to keep....
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 Free
Top 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
Reopening to apply bocoup’s fix as per @kkemple’s https://github.com/JamieMason/shrinkpack/issues/17#issuecomment-228150971.
Thanks a lot Kurtis, that’ll be handy.