How to deal with the dependency of duplicate names in package.json

problem description

I want to use the react transition group library in my current project, but I find that I already have a duplicate dependency in package.json, which makes it impossible for me to install a new dependency.

the environmental background of the problems and what methods you have tried

because this old dependency was added by our predecessors, it was a github repo, that fork the 1.x version of react transition group, and has been highly customized, so I can"t delete it yet, but I need to use some new features of the 2.x version of react transition group, so the only way is to install another 2.x version of react transition group.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

"dependencies": {
    "react-transition-group": "github:foo/react-transition-group",
    "react-transition-group": "^2.4.0",
}

what result do you expect? What is the error message actually seen?

Apr.02,2021

you rename react-transition-group of the line "react-transition-group": "github:foo/react-transition-group" ! For example, react-transition-group-customized and then replace the integrated project in batches without risk. So the two don't conflict.


"dependencies": {
    "react-transition-group@1": "github:foo/react-transition-group",
    "react-transition-group": "^2.4.0",
}

then change the place where github:foo/react-transition-group is used to react-transition-group@1


change the 2.4.0fork, change the package name
and suggest that if there is a need to open the source database in the future, changing the package name to @ XXX/XXX, after fork can avoid possible conflicts in the future

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b373ea-2b8ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b373ea-2b8ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?