mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-06 20:02:49 +08:00
fix: npm install后误卸载新装包(current_source=unknown时old_pkg与new pkg相同)
This commit is contained in:
@@ -5444,7 +5444,7 @@ const handlers = {
|
||||
const recommended = recommendedVersionFor(source)
|
||||
const ver = version || recommended || 'latest'
|
||||
const oldPkg = npmPackageName(currentSource)
|
||||
const needUninstallOld = currentSource !== source
|
||||
const needUninstallOld = currentSource !== source && oldPkg !== pkg
|
||||
const npmBin = isWindows ? 'npm.cmd' : 'npm'
|
||||
const registry = pickRegistryForPackage(pkg)
|
||||
const logs = []
|
||||
|
||||
Reference in New Issue
Block a user