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.

[ui5/cli] npm-shrinkwrap.json causing registry in .npmrc to be ignored

See original GitHub issue

Expected Behavior

Setting registry value in the .npmrc file should allow node modules to be downloaded from a private registry.

Current Behavior

ui5/cli itself comes from the registry mentioned in .npmrc but the dependency of ui5/cli comes from open source npmjs.org

Steps to Reproduce the Issue

  1. Set private registry in .npmrc
  2. Set package-lock as true in .npmrc
  3. Do npm i
  4. Check registry link in package-lock.json for ui5/cli dependencies.

Possible reason:

npm-shrinkwrap.json is present when ui5/cli is installed, as this has resolution links set as npmjs.org the registry in the .npmrc is ignored while fetching the dependencies of ui5/cli.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiasso85commented, May 3, 2021

Are only @ui5-scoped packages affected or also others?

Also others: dependencies > @ui5/cli > dependencies

				"JSONStream": {
					"version": "1.3.5",
					"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",

But only dependencies of @ui5/cli

0reactions
RandomBytecommented, May 10, 2021

I’m closing this issue since this is rather a feature request for the npm CLI.

Currently I don’t see anything we can do without loosing the benefits of the shrinkwrap file for our project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npmrc ignored private package - node.js - Stack Overflow
Rest of your package.json. And on your project B, the .npmrc must match the scope @myscope:registry=https://gitlab.com/api/v4/packages/npm/.
Read more >
@ui5/cli: Versions | Openbase
Info: v2.0.0 contained a corrupted npm-shrinkwrap.json causing npm ERR! Cannot read property 'match' of undefined errors when installing.
Read more >
What does the TDSP lifecycle have in common with the other ...
[ui5/cli] npm-shrinkwrap.json causing registry in .npmrc to be ignored, 7, 2021-04-28, 2022-09-18. [ISSUE] Acra Server doesn't encrypt on insert new row on ...
Read more >
ui5-tooling - bytemeta
[ui5/cli] npm-shrinkwrap.json causing registry in .npmrc to be ignored ... Make software development more efficient, Also welcome to join our telegram.
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