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

146
Views
Cannot pull a Github dependency

I want to use a package that isn't published on the npm store, I have read the documentation which says that it should be like:

<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]

So, I added the line:

"@solana/spl-stake-pool": "git+https://github.com:solana-labs/solana-program-library/tree/master/stake-pool/js#^0.1.0",

which has the correct format: protocol:://<hostname>/<path>.

However, I get an error:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path ~/.npm/_cacache/tmp/git-clonefNeI7r/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '~/.npm/_cacache/tmp/git-clonefNeI7r/package.json'
npm ERR! enoent This is related to npm not being able to find a file.

The url has a package.json, and if I remove this dependency, I get no error. What's the issue?

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!