-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
cannot run nvm from npm start #890
Comments
If you're getting that |
@ljharb so it's not possible to install nvm via npm? |
@dkfiresky npm requires node. what kind of sense does it make to install an X version manager with a tool that requires X? :-) |
@ljharb what is the purpose of publishing this package over npm than? And why I'm able to install it over npm? |
@dkfiresky see #304 for background - basically, because anyone can publish anything to npm, someone published a package named "nvm" that isn't this one. They graciously added me as an owner, so at some point in the future, I'll replace it with something more useful, but you'll note if you install it over npm, it gives you a deprecation warning directing you to this repository. |
For others that my stumble upon this issue: nvm can be used in the 'start' option in the "scripts" part of your package.json file, if you source the nvm.sh file as part of the command line. So you can do something like this: And your app should start up just fine without the error described in this issue. |
Or if {
"start": ". ~/.nvm/nvm.sh; nvm use stable; node yourapp.js"
} |
trying to run "nvm run stable server.js" from npm scripts
i installed nvm from curl, not using npm install nvm
The text was updated successfully, but these errors were encountered: