Skip to content

Instantly share code, notes, and snippets.

@bcoe
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save bcoe/2d48c263b7dbe1af8e0f to your computer and use it in GitHub Desktop.

Select an option

Save bcoe/2d48c263b7dbe1af8e0f to your computer and use it in GitHub Desktop.
osx-npme-installation
  1. Make sure you have a 2.x npm client installed.

  2. Install dependencies with Homebrew:

brew install ansible
brew install couchdb
brew install redis
brew install nginx
  1. Install the installer (turtles all the way down):
npm install npme
hit `n` and abort the install.
  1. Manually run the installer, overriding user and group:
./node_modules/.bin/npme --user=your-user-name --group=admin
  • when prompted, set the front-door host to http://127.0.0.1:8080.
  1. Manual steps required post install:
  • make sure we've successfully installed nginx and couchdb config (this should have happened during install):
    • nginx.conf should refer to /etc/npme/packages
    • local.ini should have an admin password set.
  • restart nginx and couchdb, something like this:
    • launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.couchdb.plist
    • launchctl load ~/Library/LaunchAgents/homebrew.mxcl.couchdb.plist
    • launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
    • launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
  • traverse to /etc/npme.
  • run npm cache clear;npm install --verbose --always-auth --registry=https://enterprise.npmjs.com.
  • run sudo ndm generate to generate launchctl scripts.
  • run ndm start to start things up.
  • run curl -XGET localhost:8080 you should see a registry!
  • tail logs and make sure settings look sane: tail -f /etc/npme/logs/*.

That should get you on your feet, there's more documentation here:

https://docs.npmjs.com/enterprise

npme uses the ndm tool, which has documentation here:

https://github.com/npm/ndm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment