-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvm-global-installs #6
Comments
If you set your |
I just use |
//cc @ljharb |
Sharing the same global directory across versions of node/iojs doesn't work when packages have binary dependencies. You can get strange errors like
Is this no longer an issue with newer versions of dependencies like nan? This is the reason why we switched from |
Global packages (especially binary ones, but not just binary ones) shouldn't be used across versions of node - if it's worked great for you (with @dylang nvm-sh/nvm#668 (comment) is an example of a feature I'd be willing to add to @sindresorhus I'd love to hear about any problems you've had with |
@ljharb Thanks for joining the conversation. I appreciate your interest in improving @sindresorhus If you feel that this is too off topic for the purpose of this repo I'm fine closing this issue. @ljharb I would just run
Super ideal world: |
@dylang |
Not to disparage the hard work of the
I suppose I've also been lucky. I've had way less problems using |
Not sure when it's been introduced, now nvm supports It's working pretty good for me nothing to complain so far yet most probably a lot has changed 🌝 Should this issue be closable then? |
@dylang Your idea has been brought to life! https://github.com/Richienb/nvm-global-installs @sindresorhus You can close this issue now. |
Problem
When using a node installer like nvm, every time you upgrade node you need to re-install your global modules.
nvm
includesnvm reinstall-packages <version>
, but this is a manual process, and if you're jumping between versions frequently, you probably don't even remember which node version has the global modules you recently discovered and installed.Solution
Module
nvm-global-installs
will loop through all of the installed versions of node and return an array of installed packages and versions for each version.CLI
As a command line it might look like using
npm ls --depth=0
for a bunch of node versions like such:Example highlighting
The text was updated successfully, but these errors were encountered: