Skip to content

Latest commit

 

History

History
 
 

npm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

NPM Repo

Try this npm.yaml file:

repo:
  type: npm
  path: /npm
  storage:
    type: fs
    path: /tmp/artipie/data/npm
  permissions:
    john:
      - download
      - upload
    jane:
      - upload

To publish your npm project use the following command:

$ npm publish --registry=http://localhost:8080/npm

NPM Proxy Repo

Try this npm-proxy.yaml file:

repo:
  type: npm-proxy
  path: npm-proxy
  storage:
    type: fs
    path: /tmp/artipie/data/npm-proxy
  settings:
    remote:
      url: https://registry.npmjs.org

To use it for downloading packages use the following command:

$ npm install --registry=http://localhost:8080/npm-proxy <package name>

or set it as a default repository:

$ npm set registry http://localhost:8080/npm-proxy