P
P
Programep2021-12-16 13:20:54
JavaScript
Programep, 2021-12-16 13:20:54

How to properly configure verdaccio as npm package cache?

Please tell me how to configure verdaccio so that when the command is executed in the project:
npm install
packages are saved in /var/lib/verdaccio/storage. As I understand it correctly, they should be stored in the verdaccio repository and for other projects installed not from npm, but from the local verdaccio repository?
Installed like this:

npm install -g verdaccio
npm set registry http://localhost:4873/
npm install --registry http://localhost:4873
npm adduser --registry http://localhost:4873

Then I tried to log in to the repository:
npm login --registry http://localhost:4873
After authorization, the command:
npm whoami --registry http://localhost:4873
returns the user's login - i.e. authorized in the repository.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question