Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

484
Views
Después de instalar npm en WSL Ubuntu 20.04, aparece el mensaje "/usr/bin/env: 'bash\r': No such file or directory"

Veo el siguiente mensaje cuando ejecuto el comando npm install o npm desde la terminal. El node en ejecución funciona como se esperaba.

 > npm install /usr/bin/env: 'bash\r': No such file or directory
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Creo que la mejor solución sería instalar NOde usando nvm en WSL, entonces no tendrás este problema.

Instalación de Node usando nvm para Ubuntu 20.04

over 4 years ago · Santiago Trujillo Report

0

Este es un problema de finales de línea, pero no de Ubuntu. Asegúrese de tener node y npm instalados correctamente usando el comando:

sudo apt install nodejs npm

Luego, deje de compartir las variables de ruta de Windows con WSL editando el archivo /etc/wsl.conf en WSL. Si el archivo no existe, ejecute sudo touch /etc/wsl.conf primero. Edite el archivo con el comando sudo nano /etc/wsl.conf y agregue la siguiente configuración:

 [interop] appendWindowsPath = false

Luego reinicie WSL2 con el comando wsl --shutdown en Windows.

Nota: esto también afecta el comando pyenv , vea /usr/bin/env: 'bash\r': No existe tal archivo o directorio: Terminaciones de línea incompatibles (¿WSL?)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!