question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

env: node\r: No such file or directory in version 0.11.0

See original GitHub issue

Getting this error message on Mac OS and in docker container with FROM node:8.5 as soon as it was built with version 0.11.0. Specifying @0.10.0 resolves the issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:18
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
fossiletcommented, Jan 10, 2018

The shebang line ends with DOS line break, which makes env to think that the executable is node\r.

2reactions
BigBlueHatcommented, Jan 10, 2018

Yep…That’s the cause: https://github.com/npm/npm/issues/12371

I’ll get an 0.11.1 published shortly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

env: node: No such file or directory - Stack Overflow
Try node -v to see whether you've installed node. I think your node not works. nvm is the environment managment for node.
Read more >
env: node: No such file or directory when using nvm - YouTrack
Found a temporary workaround: just manually append $PATH with node from nvm in debug configuration environment variables. While that works, it is of...
Read more >
Nodeenv: How to Install Nodejs in a Python Virtualenv - Kartoza
Nodeenv provides a python virtualenv like environment for sandboxing your ... Troubleshooting: /usr/bin/env: node: No such file or directory.
Read more >
env: sh\r: no such file or directory - You.com | The AI Search ...
The error message suggests that the script you're invoking has embedded \r characters, which in turn suggests that it has Windows-style \r\n line...
Read more >
Module 1: Creating a Cordova Project - GitHub Pages
Make sure you have an up-to-date version of Node.js installed on your system. ... npm WARN install:readable-stream@1.1.13 ENOENT: no such file or directory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found