-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Unable to install npm #536
Comments
I was able to reproduce the error, but I am not sure it is worth chasing what is going wrong in $ curl -L https://git.io/n-install | bash -s -- -y 6.14.4 8.12.0
$ . ~/.bash_profile # to update PATH
$ npm --version
3.10.10
$ npm install -g npm@latest
$ npm --version
6.4.1 You can see the version of npm included with node here |
Ok, thank you for your feedback. I ran the npm install script because I saw this paragraph I'll report to my collegue to see if he is able to work with npm again. |
Good context, thanks. I was wondering why you were doing the command line Those working-with-npm instructions were only intended for recovering from broken However, your experience suggests the instructions don't actually work on Mac! I'll try digging a bit more to see how README should change. |
I think this might be an issue with the npm install rather than with n, and have opened a bug on npm community. https://npm.community/t/install-sh-fails-with-rimraf-command-not-found/3270 |
Given the npm install script is not working on Mac, and an issue causing npm to break has been fixed in #470, planning to remove the suggestion from the README. |
I have removed the instructions from the README in v3.0.1, since they do not work on Mac, and probably not needed anymore. |
Issue Template:
Describe issue including what OS you are using
I can no longer install
npm
.I'm not sure it is a
n
related issue, but it came out to a collegue of mines who was usingn
on a new computer and tried to install node and npm usingn
.I tried to update my installation and got the same problem.
I'm on MacOS HighSierra (10.12.6), but the collegue has a brand new computer with MacOS Mojave.
Describe what version of N you have
We both use the latest: 2.1.12
Describe how you installed N
curl -L https://git.io/n-install | bash -s -- -y 6.14.4 8.12.0
I installed some time ago, when node 8.12.0 was the lts, I had no issue and was able to install npm by running
curl -0 -L https://npmjs.com/install.sh | sh
on both 6.14.4 and 8.12.0
Steps to reproduce issue 1.2.3
My collegue followed this procedure
curl -L https://git.io/n-install | bash -s -- -y 6.14.4 8.12.0
curl -0 -L https://npmjs.com/install.sh | sh
but the second one failed.
Describe the results you received
We both got the same error
Describe the results you expected
I expect
npm
to be installedWhat version of npm you are using
My collegue is not able to install
npm
. I have a different outcome, probably because I was able to install it in the past.At this point, I'm completely confused
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: