Verdaccio: package-lock.json - Resolved field points to npmjs registry

Created on 3 May 2019  路  3Comments  路  Source: verdaccio/verdaccio

Describe the bug
Resolved filed sometimes point to npmjs registry instead of the installed registry verdaccio (see example below)

To Reproduce
Steps to reproduce the behavior:

  1. npm i on some project with a registry set to verdaccio
  2. Check package-lock.json
  3. Check resolved fields

Example below at screenshot section

Expected behavior
All resolved field should point to verdaccio registry

Screenshots
image

Docker || Kubernetes (please complete the following information):
Not able to provide info (no acces to verdaccio installation)

Configuration File (cat ~/.config/verdaccio/config.yaml)
Not able to provide info (no acces to verdaccio installation)

Debugging output

  • $ NODE_DEBUG=request verdaccio display request calls (verdaccio <--> uplinks)
  • $ DEBUG=express:* verdaccio enable extreme verdaccio debug mode (verdaccio api)
  • $ npm -ddd prints:
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Users\\PP01-YOOP\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   '-ddd' ]
npm info using [email protected]
npm info using [email protected]

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    completion, config, create, ddp, dedupe, deprecate,
    dist-tag, docs, doctor, edit, explore, get, help,
    help-search, hook, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rb, rebuild, repo, restart,
    root, run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    C:\Users\PP01-YOOP\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

[email protected] C:\Users\PP01-YOOP\AppData\Roaming\npm\node_modules\npm
  • $ npm config get registry prints:
    Point to our verdaccio (cf screenshot)

Additional context

outdated question yarn

Most helpful comment

Worked like a charm thanks a lot

All 3 comments

Please, remove lock file and node_modules. Then, ensure registry is set to your verdaccio instance and finally install again to regenerate the lock file. Ensure that every url points to verdaccio instance and not to npmjs registry

Worked like a charm thanks a lot

馃This thread has been automatically locked 馃敀 since there has not been any recent activity after it was closed.
We lock tickets after 90 days with the idea to encourage you to open a ticket with new fresh data and to provide you better feedback 馃and better visibility 馃憖.
If you consider, can attach this ticket 馃摠to the new one as a reference for better context.
Thanks for being a part of the Verdaccio community! 馃挊

Was this page helpful?
0 / 5 - 0 ratings

Related issues

priscilawebdev picture priscilawebdev  路  3Comments

radubrehar picture radubrehar  路  4Comments

ceoaliongroo picture ceoaliongroo  路  4Comments

kopax picture kopax  路  3Comments

lope picture lope  路  3Comments