Script for automatically switch node versions based on the configured engine in the package.json
·
Report Bug
·
Request Feature
·
It tries to parse the specified engine in package.json
. It used nvm to switch to the determined version.
wnv run start:dev
or evan better: with an alias
echo 'alias npm="wnv"' >> ~/.bashrc
source ~/.bashrc
npm run start:dev
brew install Beuterei/homebrew-tap/wnv
or without brew
# installs to /usr/local/bin/wnv
curl -L https://raw.githubusercontent.com/Beuterei/what-node-version/master/wnv >/usr/local/bin/wnv
chmod 0755 /usr/local/bin/wnv
Parameter | Description |
---|---|
-h --help |
Show the usage summary and exit |
Run command with the NO_CACHE
environment variable set
NO_CACHE=1 wnv run some_command
Override the normal npm
command to make it easy to use.
echo 'alias npm="wnv"' >> ~/.bashrc
source ~/.bashrc
\npm run start:dev