question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct support for .nvmrc?

See original GitHub issue

Is it possible for avn to directly support the .nvmrc file I already have in my project?

Perhaps some logic could be incorporated to do an OR operation when searching (e.g. '.node-version' || '.nvmrc'). Having to duplicate that file is unfortunate because then both have to be in sync.

I’m currently symlinking the file but would love to not have to do that.

Thanks!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
wbyoungcommented, Jul 18, 2015

This is now available in avn 0.2 and avn-nvm 0.2. Run the following, then restart your shell:

npm i -g avn avn-nvm
avn setup
0reactions
wbyoungcommented, Jul 28, 2015

@danawoodman I’d be happy to accept a pull request that accounts properly for all configurations of all shell types and config files as we’d expect them to be appropriately used across different platforms. Right now avn simply assumes the use of .bash_profile and/or .zshrc. Obviously this does not cover all cases properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

run `nvm use` automatically every time there's a .nvmrc file on ...
Calling 'nvm use' automatically in a directory with a .nvmrc file ... On the positive side, direnv supports a bunch of runtimes like...
Read more >
Guarantee a Single Version of Node.js In All Environments
It supports a variety of Node.js version declaration files, including .nvmrc and the more widely-supported .node-version , among others.
Read more >
Managing your Node.js version with nvm - CloudCannon
Usage .nvmrc. CloudCannon uses the LTS ( v16.13.0 ) version of Node.js by default. You can use nvm to select which node version...
Read more >
Node Version Manager (NVM) on Steroids | by Nivrith
The script looks for a .nvmrc file in the directory and attempts to use ... If it finds the .nvmrc file, it uses...
Read more >
per-project nvm support via nvmrc : WEB-23906 - YouTrack
nvm allows the installation of multiple concurrent version of Node and NPM. nvm provides a per-project Node version to be used by creating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found