Answers for "/usr/bin/env: ‘ruby’: no such file or directory"

1

/usr/bin/env: ‘bashr’: No such file or directory

This is a line endings issue, but not from Ubuntu. Make sure you do have node and npm installed correctly by using the command:

sudo apt install nodejs npm

Then stop Windows path variables being shared with WSL by editing the /etc/wsl.conf file in WSL. If the file doesn't exist, execute sudo touch /etc/wsl.conf first. Edit the file with the command sudo nano /etc/wsl.conf and add the following configuration:

# Wsl.conf
[interop]
appendWindowsPath = false

Then restart WSL2 with command wsl --shutdown in Windows(Powershell or CMD).
Posted by: Guest on December-25-2021
0

/usr/bin/env: ‘bashr’: No such file or directory

# The error message suggests that the script you're invoking has embedded r characters,
# which in turn suggests that it has Windows-style rn line endings instead of the n-only
# line endings bash expects.
# As a quick fix, you can remove the r chars. as follows:
sed $'s/r$//' ./install.sh > ./install.Unix.sh
Posted by: Guest on October-08-2021
-1

/usr/bin/env: ‘node’: No such file or directory

sudo add-apt-repository https://launchpad.net/~chris-lea/+archive/node.js/

sudo apt-get install -y nodejs
Posted by: Guest on September-03-2020

Code answers related to "/usr/bin/env: ‘ruby’: no such file or directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language