Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🍄 Automagically use the correct version of node with nvm

License

NotificationsYou must be signed in to change notification settings

iamogbz/nvshim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGO

Automagically use the correct version of node withnvm exec functionality.

Build StatusCoverage StatusPypiStageWheelDependabot badge

No morenvm use

This will use existing.nvmrc file, falling back to thenvm alias default version if no config detected.

Installation

Pip

pip install nvshim

Github

pip install git+git://github.com/iamogbz/nvshim.git

Configuration

Reads all configuration from the environment.

Relies onnvm being installed and configured correctly.

NVSHIM_AUTO_INSTALL

Set to1 ortrue to auto install specified version of node if not installed bynvm.

NVSHIM_VERBOSE

Set to1 ortrue to show more information on the shimmed node process.

Otherwise set to0 orfalse or nothing.

Caveats

  1. To allow thenvshim installednode shim work in all directories, you'll need to stop sourcingnvm.sh in your shell rc i.e.bash_profile,zshrc etc.

    • Just comment out thesource /Users/me/.nvm/nvm.sh in your shell startup script. This is optional and preventsnvm from taking control of your shell path on launch.
    • Withnvm shimmed,nvm use commands do not have any effect on the shell, thenode version is already always gotten from the config automatically.
  2. The scope of this project only shims thenode,npm,npx andnvm binaries. Any globally installed modules are not automatically shimmed.

    • It is still easy to run a specific global bin e.g.npx eslint will alway run the version ofeslint installed via thenode version for the current shell.
    • Indicate your interest in having this tool shim all binaries installed via node by leaving a commenthere.

Contribution

All forms of contribution welcome, please seeguide.

make install
make tests a="--snapshot-update"

[8]ページ先頭

©2009-2025 Movatter.jp