Score:0

bash: /home/linuxbrew/.linuxbrew/bin/node: cannot execute binary file: Exec format error

gb flag

I am trying to install nodejs on wsl but I faced this issue Commands I tried:

brew install node
brew link node
node -version
-bash: /home/linuxbrew/.linuxbrew/bin/node: cannot execute binary file: Exec format error
Emmanuel avatar
de flag
Is it WSL version 1 or 2?
userfh  avatar
gb flag
@Emmanuel it is version 1
userfh  avatar
gb flag
@Emmanuel I tried many solutions and I read many documentation but nothing works
Terrance avatar
id flag
Without telling us what you have tried to fix it, it is nearly impossible for us to come up with an answer without having you try stuff that you have already tried. I would suggest that you edit your question and show us what you have tried instead. I did find that people were having issues the same way and changing to WSL2 could fix the error. See https://github.com/microsoft/WSL/issues/8151#issuecomment-1141427494
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.