Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eb-authenticate-npm

Package Overview
Dependencies
Maintainers
22
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eb-authenticate-npm

Authenticates Elastic Beanstalk environments to npm.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
22
Weekly downloads
 
Created
Source

eb-authenticate-npm

This module installs an .ebextensions config file that will authenticate your Elastic Beanstalk environments to npm.

The config file will do this by creating an .npmrc that reads the value of the NPM_TOKEN environment variable. This .npmrc file will only be created in EB, letting you use whatever authentication strategy you like locally. (The alternative.)

By the way I was really hoping that EB would automatically read NPM_TOKEN as per this Stack Overflow answer but that didn't work for me (tested 8/3/2016).

Installation

  1. npm install eb-authenticate-npm --save-dev (see here for why --save-dev)
  2. Commit the .ebextensions file it creates.
  3. Set the NPM_TOKEN EB environment variable to an npm authentication token.
  4. Deploy.

Modifying the .ebextensions file

This module will overwrite the file if/when it is updated.

Pull requests are welcome if you have some generally-useful modifications to suggest.

If you'd like to make modifications specific to your use case, you should uninstall this module after installing the .ebextensions file. Uninstallation won't take the file with it.

Thanks/Prior art

Thanks to Remy Sharp for suggesting this strategy, and this Stack Overflow answer for helping me figure out where the .npmrc needed to be written.

Keywords

FAQs

Package last updated on 12 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc