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.

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

See original GitHub issue

Overview

I installed embark using the command sudo npm install -g embark. Everything went fine. However, when I run embark, I am getting the following error.

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

Tried uninstalling and reinstalling the module. Still the name.

Context (Environment)

  • OS: Ubuntu Budgie 18.04.1
  • Node Version: 8.10
  • NPM Version: 3.5.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelsbradleyjrcommented, Aug 19, 2018

After node has been installed via nvm, do not use sudo to install embark, just:

npm install -g embark
1reaction
michaelsbradleyjrcommented, Aug 19, 2018

@shahthepro, can you try installing Node.js via nvm?

We recommend installing Node via nvm as the easiest way to avoid npm permissions issues. See fixing-npm-permissions for more info.

Read more comments on GitHub >

github_iconTop Results From Across the Web

run npm command gives error "/usr/bin/env: node: No such file ...
I installed via sudo make install. npm still fails: /work/qpp$ sudo npm install -g grunt-cli /usr/bin/env: node: No ...
Read more >
Cannot install NodeJs: /usr/bin/env: node: No such file or ...
This problem does not occur with Ubuntu 20.04. sudo apt-file find /usr/bin/node lists nodejs: /usr/bin/node . That is, installing the nodejs package installs ......
Read more >
"/usr/bin/env: 'node': No such file or directory" even though it is ...
I'm trying to get nodejs working. However, it tells me that node is not in my bin even though I downloaded the binary...
Read more >
Error usr bin env node No such file or directory - Edureka
I installed node js and npm via apt-get install and all of the dependencies, then I installed browserify npm install browserify -g.
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 >

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