Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: NPM install with private repository

webteam@rbfcu.org free asked 6 years ago


We have the pro version of MDBootstrap. We've followed the quick start guide and are trying to reference MDB from NPM in our package.json file like so:
"ng-uikit-pro-standard": "git+https://oauth2:xxx@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git"
However this isn't feasible in our workplace environment, where all npm packages need to come through our internally hosted NPM repository manager (we use Nexus). How can we use MDBootstrap this way? We should not have to reference a direct URL in npm config. And yes, we are aware of configuring the proxy, but again--our enterprise does not allow this. Is there a way to download the package and then install it to our local repository manually, and reference it that way?

webteam@rbfcu.org free answered 6 years ago


I was able to resolve this by downloading a zip of the repository, and then running npm pack to create a local .tgz file. Then I uploaded that to our internal Nexus repository and users can instead refer to the specific version in npm rather than the URL to the remote repository.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: Yes
  • Provided link: Yes