Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
Adding .npmrc file to Angular project

I seem to be missing a whole step in doing this. I added an .npmrc file in the root of my angular project and added the following line inside it:

@example/xxx:registry=ssh/url/of/my/private/repo/in/bitbucket

And accordingly added @example/xxx in my package.json to install the dependency from my private repository.

However, the file seems to have no effect at all and not even recognized as when running npm install fails and returns an error for not finding my package on npm registry (which was expected). Is there something more i have to do other than simply creating .npmrc file in the root of the project?

My goal us to be able to push the project with the correct configuration so that every who has access to the package and project repo can simply pull the project and be able to install and use the private package.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Adding the following line in package.json of the angular project solves the problem:

"package-name": "url/of/package/repo"

But, I want to change the package scope and to be able to address it using @SCOPE/xxx:registry=......

*Its a private package and it is not published.

Edit: I simply had a typo. The following line in the .npmrc file worked:

@SCOPE:registry=https://....

The xxx part was not needed. Thanks to the gitlab package registry documentation.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!