erisu commented on issue #962:
URL: https://github.com/apache/cordova-lib/issues/962#issuecomment-3332460350

   Can you explain what is being achieved with alias? 
   Is there a reason why you cant install the package directly from the private 
repository?
   
   For example:
   
   ```bash
   # Create a npm config file where we will add the private orgs registry
   touch .npmrc
   
   # Add the Orgs private registry
   npm config -L project set @MyOrg:registry https://npm.pkg.github.com/
   
   # Remove the current geolocation plugin
   cordova plugin rm cordova-plugin-geolocation
   
   # Add Orgs private package
   cordova plugin add @MyOrg/cordova-plugin-geolocation
   ```
   
   Then when you restore, for example:
   
   ```bash
   # Clean up
   rm -rf node_modules platforms plugins
   
   # Re-checkout packages
   npm i
   
   # Restore Cordova Project
   cordova prepare
   ```
   
   Would this not work?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to