Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Deprecated, see npm_lazy instead

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 config.js
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.md
Octocat-spinner-32 server.js
readme.md

npm-push: a private npm server

I wanted a private server that is easy to deploy - e.g. one that uses regular files for storage (no CouchDB).

I wanted something that can cache npm packages locally, and that can accept pushes from npm locally.

Configuration

npm config set registry http://localhost:8080

or

npm --registry http://localhost:8080/ install foo

or in package.json:

  "publishConfig":{
    "registry": "http://localhost:8080/"
  }

Supported commands

Commands that work - remote:

npm install
npm publish
npm view / npm info

Install and view are cached. Publish does not go out to the main server.

Todo - remote:

npm adduser
npm deprecate <pkg>[@<version>] <message>
npm outdated [<pkg> [<pkg> ...]]
npm owner add <username> <pkg>
npm owner rm <username> <pkg>
npm owner ls <pkg>
npm search
npm star <package> [pkg, pkg, ...]
npm unstar <package> [pkg, pkg, ...]
npm tag <project>@<version> [<tag>]
npm unpublish <project>[@<version>]
npm update

Commands that work - local:

npm bin / npm prefix / npm root
npm bugs / npm docs
npm cache ...
npm completion
npm config ... / npm get / npm set
npm edit / npm explore
npm faq / npm help / npm help-search
npm init
npm link
npm ls
npm pack
npm rebuild
npm rm / npm uninstall / npm prune
npm run-script/ npm start / npm restart / npm stop / npm test
npm submodule
npm shrinkwrap
npm version
npm whoami
Something went wrong with that request. Please try again.