question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed init with private packages

See original GitHub issue

I’m unable to run npx sb init on an existing codebase due to errors with private packages (GPM).

error An unexpected error occurred: "https://registry.npmjs.org/my-private-repo: Not found".

The same packages work fine for normal npm -i or yarn CLI dependency management.

Is there a known requirement / issue around this?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dreamer01commented, Sep 27, 2021

Apart from private packages, packages installed from the custom/org registry are also not installing as they are not found in the npm registry, this also breaks the sb init command.

Error:

Installing dependencies⸨░░░░░░░░░░░░░░░░░░⸩ ⠦ rollbackFailedOptional: verb npm-session 007a205320npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@abc%2fxyz - Not found
npm ERR! 404 
npm ERR! 404  '@abc/xyz@1.0.345' is not in the npm registry.

npm accept flag of --registry can we have same for this command?

0reactions
doublejoshcommented, Dec 16, 2020

Several of our private repos work ok during init, two do not. The working dependencies comprise both packaged releases and just regular git repos. My best guess is some slight difference in permission settings… but if I can install normally (having setup my GPM token) then it should work. 🤷‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get an error during publishing Private Package - Stack Overflow
I have a folder plaza which I want to convert to private package under ... npm init --scope=@ocean; npm login (logged in my...
Read more >
Creating and publishing private packages - npm Docs
To share your code with a limited set of users or teams, you can publish private user-scoped or organization-scoped packages to the npm...
Read more >
Handling private packages - Composer
Private Packagist provides mirroring for packages' zip files which makes installs faster and independent from third party systems - e.g. you can deploy...
Read more >
Working with private modules - Play with Go
This means it will try the Go module mirror run by Google and fall back to a direct connection if the proxy reports...
Read more >
Go Modules Reference - The Go Programming Language
go mod graph: go mod init: go mod tidy: go mod vendor: go mod verify: go mod why ... For example, the module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found