remove dependencies from package json after uninstall