-
-
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
"npm install xyz" produces "asyncWrite is not a function" #508
Comments
I tried this in a docker container and reproduced the same error. I looked around within npm because this isn't an N issue. I found these issues: pna.nextTick and this one. I'm going to close this issue but the solution I had was to use node 8.11.2 with npm version 5.6.0 to solve this issue. |
Had the same issue, reverting to stable, updating npm, then upgrading node to latest worked for me. |
@ozjd linked solution worked for me |
I am still getting this issue. |
@mateodelnorte Did you try what @ozjd linked above? It worked for me. |
I was actually able to revert back to lts, upgrade n, switch to 10, and
then publish.
Thanks!
…On Fri, Jun 22, 2018, 7:49 AM Ross Hadden ***@***.***> wrote:
@mateodelnorte <https://github.com/mateodelnorte> Did you try what @ozjd
<https://github.com/ozjd> linked above? It worked for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#508 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAh3X75K-83TTU6d_k3WjVlHo5EYgppfks5t_OeqgaJpZM4UWD6j>
.
|
Use sudo when switching node version with n |
@Andrewsopoku That would switch the |
This woks for me:
|
@prcongithub That was the solution I was looking for! Thanks, worked in my VM. |
Thanks, it worked! |
Maybe some way of complete uninstall of all node versions (like mentioned above) can be part of n? |
$ rm /usr/local/bin/node
$ rm -rf /usr/local/lib/node_modules/npm
$ n latest
$ npm --version
6.4.1
$ npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
+ [email protected]
updated 1 package in 0.466s |
@JohnRGee I'm not seeing v2.1.12 in the releases. Would it be possible to make a release for this version so the homebrew version of Bumped into this issue the other day and it took me a while to find this as the root cause |
Yeah, I'll make a new release for 2.1.12 -- edit: npm shows 2.1.12 but I tagged it on github so you can get the latest @PepperTeasdale |
Thanks! |
This patch fixes a bug as seen in this [github issue](tj/n#508) Closes #33153. Signed-off-by: FX Coudert <[email protected]>
If you remove all global npm packages it's not possible for me to use |
Good comment @mrzmyr See #508 (comment) for more complete instructions. |
This worked for me on CentOS without having to reinstall node: It's based on @iarna one liner here #510 (comment) |
After you do this, go to https://nodejs.org/en/ and reinstall node. Then, install a node package manager like |
Issue Template:
Describe issue including what OS you are using
I'm using CentOS
Describe what version of N you have
--version output: 2.1.11
Describe how you installed N
npm install -g n_
Steps to reproduce issue 1.2.3
i.e.
What version of npm you are using
npm --version output: 6.1.0
Additional information you deem important (e.g. issue happens only occasionally):
which n:
2.1.11node -v:
10.3.0(paste your output here)
The text was updated successfully, but these errors were encountered: