[](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=ucmagency/commons&utm_campaign=Badge_Grade)
npm install @ucmagency/commons
npm install --global verdaccio
`
Then run it.
`
verdaccio
`
You would need set some npm configuration, this is optional.
`
$ npm set registry http://localhost:4873/
if you use HTTPS, add an appropriate CA information
("null" means get CA list from OS)
$ npm set ca null
`
Now you can navigate to http://localhost:4873/ where your local packages will be listed and can be searched.
#### Building and publishing this library
The first thing is to change the version in our package.json
`
atom package.json
`
It is a line like this:
`
{
"name": "@ucmagency/commons",
"version": "0.0.74", # <----- this number here!
...
`
Now you can clean, build and publish it to your local repo.
`
yarn clean
yearn build
npm publish --registry http://localhost:4873
`
or you can publish it directly to NPM.
`
yarn publish --registry https://registry.npmjs.com
``