-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Manjaro: nvm is not compatible with the npm config "prefix" option: currently set to ""
#1968
Comments
I tried the following workaround (in
Which does result in the correct |
ok, so first, you def don’t need to manually overwrite the path. as for the segmentation fault; what is manjaro? is there a chance that it’s 32-bit, which means node 10+ might not work on it? Does node 8 or 9 work? |
it is 64 bit, and till the latest version everything worked. |
OK - so you're saying that |
|
OK, so, let's see. What's the output of the following? echo $PATH
nvm use node --delete-prefix
echo $PATH |
I'm getting the same behavior as @Jan-Jan, with exactly the same OS version. However, if I switch to node v8.15.0 everything seems to work fine |
and
however, if I run |
I could replicate the behaviour @davidgf saw: |
I've tried building from source the problem remains exactly the same |
My hunch is that there’s something in your PATH that’s a shared library, that works with your system node (and node 8) but makes node 10+ crash - i assume of you upgraded your system node to 10 or 11, either 1) it’d fix nvm for node 10+ but break it for < 10; or 2) your system node would start crashing in the same way. I’m not sure how to debug it; but it might be worth filing an issue on node itself - when Let’s keep this open in case more ideas surface about a direction. |
My system node is node 11. nvm on node 11 does not work |
Hmm, that's very strange. Still, the segmentation fault seems to be an issue with node, specifically - I'd still suspect that uninstalling your system node might fix the problem. |
i am noticing the same behavior on archlinux. `signal1 fails to build because of this nvm issue
|
ok i did some digging around but because i am really not familar with the codebase itself i think someone might be better equipped at fixing this than me. |
|
|
@myf certainly if node and npm won't both compile and execute properly, such that you get a core dump, then there's not much nvm can do :-/ |
@ljharb i just tried to run node and npm directly from |
That is baffling! Why would invoking it directly work, but |
|
yet |
if so, this really seems like something you'd need to file on node itself. |
@ljharb yup that is the behavior! from that signal aur error posted above i think i am not alone in this. we are using [email protected] at the moment |
Given that everyone with this issue is on "manjaro" I still am inclined to believe it's an issue with node itself, not nvm. |
@ljharb one sec, i think v10.13.0 is the one that is affected. v8.9.3 worked fine on my system |
I'm having the same message printed on Archlinux (Manjaro is based on it). |
I'm having this issue as well, on OSX Mojave with node v10.15.0 |
@CrowderSoup everyone else seems to be using Arch or Manjaro; you're the first that's using OS X. Can you provide your |
I resolve it with this issuse |
v0.34.0 is released; can all of you try updating and see if the problem is still there? I don't expect it'll fix things, but it's worth a shot. |
@ljharb tested, same issue with v10.x node branches |
@ljharb if you can check out this related issue: lukechilds/zsh-nvm#52. I had the same problem whether I tried archlinux's nvm package or zgen's zsh-nvm package. |
Considering it's a best practice to always filter everything through |
I'm getting a segfault when trying to use npm after changing my node version through nvm. It returns me:
Currently i'm using Arch Linux too. |
Same issue here as well on Manjaro with nvm 0.34. Can use previous LTS versions just fine but not dubnium |
I'm also able to reproduce this issue on my Manjaro Linux running nvm version: 0.34.0.
However, nvm fails to switch over to following versions of node:
|
This then seems like an issue with node itself, and its compatibility with Manjaro - and not something nvm can fix. Has an issue been filed on node? |
I am having same issue on one of my OSX machines at work. Installing node v11 standalone works though. |
@DimitrK can you file a separate issue about your OS X problem? There's a few comments on this issue unrelated to manjaro but it'd be great if you could file something separate (@CrowderSoup figured out their problem, and it was unrelated) |
nvm 0.34, fresh manjaro, oh-my-zsh, facing the same issue while trying to switch to node 10: |
For the time being, after trying out many things suggested, I think the easiest solution on manjaro/zsh to just install the version in the repo, which works fine if you only need 10.15.3 node:
|
This clearly seems to be an issue with node 10 and Manjaro. If there ends up being a simple workaround nvm can detect and apply to make it work, I’ll happily reopen this and add it. Otherwise, please file an issue on one or both of node or manjaro, since it’s a bug with one of them (probably not node). |
I figured this out on my system. For other Arch/Manjaro users here's how you can find the cause:
So for me it was Popcorn Time installed from the AUR (popcorntime-bin). After I removed Popcorn Time all versions of node worked. |
@agaskell Good eye I'm on arcolinux here and my output definitely points to Thank you! EDIT: |
I'm having the same issue but with Kubuntu. As said here: #1968 (comment), the same versions give me the "prefix" error and "npm" fails to execute. The only difference is that I don't get a segfault but "zsh: command not found: npm" message. I got a segfault once but can't seem to reproduce it and afterwards "node" and "npm" run just fine if executed from ".nvm" folder, |
just changing the nvm_dir script code on my zshrc fixed it:
|
yh I know. I thought this might be related. or someone else might come in here and try and look for answers as I did. |
This is what fixed me. My work system has my home directory symlinked to a different volume. |
All of a sudden nvm stopped working :-( I've done a clean install of
nvm
. It goes well. Then when I donvm install lts/dubnium
I get the following error.Since,
lts/dubnium
was successfully installed, I also triednvm use lts/dubnium
I get the same error.If I run
nvm use --delete-prefix v10.15.0
, then the system node get used, and I cannot get it to uselts/dubnium
.There is no
.npmrc
file. I use zsh.Operating system and version:
4.19.12-2-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, Homebrew):What steps did you perform? What happened?
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
which worked great.
Then I ran
nvm install lts/dubnium
resulting inwhich installed the
v10.15.0
, but gave the errorThe text was updated successfully, but these errors were encountered: