auto-install icon indicating copy to clipboard operation
auto-install copied to clipboard

It DELETED all my packages!!!

Open xeroxstar opened this issue 5 years ago • 5 comments

I installed this module and run in my project as it shown in the tutorial and it deleted all my modules, are you serious? All my modules F... GONE!!!!!!!

× html5sortable removed
× parse-function removed
× eslint removed
× vue2-brace-editor removed
× esprima removed
× decache removed
× auto-install removed
× register-service-worker removed
× splitpanes removed
× vuex removed
- Uninstalling @fortawesome/fontawesome-free

and none of them could be installed back by giving me this nonsense:

- Installing chokidar
npm ERR! path  ... \node_modules\normalize-path
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename

holly crap, it should say auto-uninstall and not auto-install !!!!

xeroxstar avatar Oct 19 '19 05:10 xeroxstar

You had your package.json checked into git, no?

OmgImAlexis avatar May 07 '20 01:05 OmgImAlexis

Sorry @xeroxstar this happened because the module searched your files and found no explicit 'import' of these modules hence it removed them. I have pushed a commit to make 'uninstall' false on default.

ceafive avatar May 12 '20 23:05 ceafive

@ceafive just a pointer, keep backward compatibility in mind

siddharthkp avatar May 13 '20 05:05 siddharthkp

@siddharthkp yeah got it. This is barely a breaking change I suppose but this solves a critical problem many people might have

ceafive avatar May 13 '20 08:05 ceafive

uninstall is a feature not a bug :)

however, it's supposed to only removed unused packages, not all of them like the issue creator posted

siddharthkp avatar May 13 '20 09:05 siddharthkp