New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nodenv/nodenv-default-packages

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodenv/nodenv-default-packages

Install default packages every time you install a new version of Node

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

nodenv-default-packages

Build Status

This nodenv plugin hooks into the nodenv install command to automatically install npm packages every time you install a new version of Node. It requires the node-build plugin to be installed.

Forked from the excellent rbenv-default-gems plugin from sstephenson.

Installation

Installing as a nodenv plugin

Make sure you have the latest nodenv and node-build versions, then run:

git clone https://github.com/nodenv/nodenv-default-packages.git $(nodenv root)/plugins/nodenv-default-packages

Installing with Homebrew (for OS X users)

Mac OS X users can install nodenv-default-packages with the Homebrew package manager.

This is the recommended method of installation if you installed nodenv with Homebrew.

$ brew install nodenv/nodenv/nodenv-default-packages

Or, if you would like to install the latest development release:

$ brew install --HEAD nodenv/nodenv/nodenv-default-packages

Usage

nodenv-default-packages automatically installs the packages listed in the default-packages file(s) file every time you successfully install a new version of Node with nodenv install.

Specify packages in default-packages by name, one per line. You may optionally specify a semver version spec after the name. For example:

grunt-cli
jshint ~2.6.3
csslint >= 0.9.0 < 0.10.0

Blank lines and lines beginning with a # are ignored.

default-packages Files

nodenv-default-packages reads from $(nodenv root)/default-packages as well as nodenv/default-packages under all XDG config directories. The XDG config directories searched are $XDG_CONFIG_HOME ($HOME/.config if unset/empty) and all colon-separated $XDG_CONFIG_DIRS (/etc/xdg if unset/empty).

Updating Default Packages

if you update your $(nodenv root)/default-packages and want to refresh some or all of your existing node installations you can use commands like this:

nodenv default-packages install 8.8.1   # Reinstall default packages on Node version 8.8.1

nodenv default-packages install --all   # Reinstall default packages on _all_ installed Node versions

NOTE: This may take some time.

Credits

Forked from Sam Stephenson's rbenv-default-gems by Josh Hagins and modified for nodenv.

FAQs

Package last updated on 23 Sep 2019

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