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

186
Views
Incomplete npm private package installation

I am trying to install a private dependency and I am getting strange behavior. The entry point of this package I want to install is "main": "src/index.js".

  1. If I clone the whole repository and use it as a local dependency like this:

    package.json

    "dependencies": {
      ...
      "pkgName": "file:path/to/pkgName"
    }
    

    In the node_modules i get something similar to:

    pkgName
    ├── README.md
    ├── package.json
    └── src
        ├── index.js
        ├── file1.js
        ├── file2.js
        └── file3.js
    
  2. But if I install it from my company's bitbucket like this:

    "dependencies": {
      ...
      "pkgName": "git+https://user:password@bitbucket.org/companyName/pkgName.git"
    }
    

    What I get in node_modules is something like:

    pkgName
    ├── README.md
    ├── package.json
    └── src
        ├── index.js
        └── file1.js
    

In both cases the installation is successfully finished but in the last one there are some files missing.

Do you know what could be happening?


I have installed:

  • npm 6.14.4
  • node 14.16.1
about 4 years ago · Juan Pablo Isaza
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!