/nodenv-pnpm-install

fork of nodenv-yarn-install

Primary LanguageShellMIT LicenseMIT

nodenv-pnpm-install

Automatically install pnpm after nodenv install.

Getting started

First, install this plugin in your computer.

For Bash, Zsh users

$ mkdir -p "$(nodenv root)/plugins"
$ git clone https://github.com/0num4/nodenv-pnpm-install.git "$(nodenv root)/plugins/nodenv-pnpm-install"

For fish users

$ mkdir -p (nodenv root)"/plugins"
$ git clone https://github.com/0num4/nodenv-pnpm-install.git (nodenv root)"/plugins/nodenv-pnpm-install"

Let's install your favorite Node v4.0.0 or later!

$ nodenv install 10.15.1
Downloading node-v10.15.1-darwin-x64.tar.gz...
-> https://nodejs.org/dist/v10.15.1/node-v10.15.1-darwin-x64.tar.gz
Installing node-v10.15.1-darwin-x64...
Installed node-v10.15.1-darwin-x64 to /Users/pine/.anyenv/envs/nodenv/versions/10.15.1

Installed default packages for 10.15.1
Installing pnpm...
/Users/pine/.anyenv/envs/nodenv/versions/10.15.1/bin/pnpm -> /Users/pine/.anyenv/envs/nodenv/versions/10.15.1/lib/node_modules/yarn/bin/yarn.js
/Users/pine/.anyenv/envs/nodenv/versions/10.15.1/bin/yarnpkg -> /Users/pine/.anyenv/envs/nodenv/versions/10.15.1/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.13.0
added 1 package in 0.969s

Installed pnpm 1.13.0

Enjoy!

Related projects

If you use ndenv, please use the following instead this.

See also

License

MIT