It can be managed by using several packages installer and their configuration files. Maximum usages is NPM and YARN.
Both of them provides almost all the libraries of Javascripts With extended features of controlling environment. We can use Package.json and Package-lock.json to maintain version of libraries intsalled in projects.
So,there will be no issues in porting the app in different environment.