-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
Installed on Ubuntu 16.04.2 LTS, and n <version>
doesn't change which node version I am using.
#451
Comments
To work around the problem for now, I've symlinked /usr/local/bin/node to the version installed in /usr/local/n/. Another option is to manually update PATH. |
what is the output of which node? It seems the symlink didn't happen or the node you are using isn't the one from n. I have a docker container that is Ubuntu:16.04 you can try at |
I'm getting the same result.
Edit: Looks like it's an overuse of sudo that's tripping me up here. |
Hmmm, maybe that's not the default one? I think |
I seem to run into the same issue where I've installed Node using the following:
For now fixing this using:
Once linked, changing the version using |
May actually be a duplicate of #381 |
Restarting shell didn't work for me. It turned out that something (I'm guessing heroku toolbelt?) had added a new binary for me.
Removing that worked. |
I had something similar:
So I needed to rehash (or quit and re-run the shell) to fix this. This was from doing the git clone version of install and then the foregoing n-based installs, all in one shell. Hard to think how to fix this, except perhaps by making 'n' check whether 'which node' changes value and printing a ***** BIG OBVIOUS WARNING ***** about it for stupid people like me. :) Here's hoping I won't suffer the npm install Buffer.alloc bug now. |
Same problem still, as of March 2018 (well, it's the same |
It might help to remove the pre-installed version of node |
I solved it.
Previously I had installed node 8.11.3 with:
and then I installed n with:
But, when I changed the node version with n to 10.5.0 for example |
@guido4000 thx - that fixed it. |
Restarting the shell was the most common fix. This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
e.g.
(Longer transcript: #588 (comment)) |
After installing bu using root permissions i simply type >exit in terminal and relogin again as sudo |
export PATH=$PATH:/usr/local/bin/node |
This solved it for me. |
Issue Template:
Describe issue including what OS you are using
Ubuntu 16.04.2 LTS
Describe what version of N you have
2.1.7
Describe how you installed N
npm i -g n
while on node v4.2.6 which is installed with default apt-get registry for my version of Ubuntu.Steps to reproduce issue 1.2.3
Describe the results you received
It outputs
v4.2.6
, but I was expectingv8.1.4
What version of npm you are using
5.0.3
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: