Solved Issue – “/usr/bin/env: ‘node’: No such file or directory”

black laptop computer turned on

In this post I want to share one issue that I fetch. When I started working on my react js project first time on my ubuntu 16.04, I installed npm and then after I run bellow command:

npm install -g create-react-app

this way I installed create-react-app then after I created new command using create-react-app commands, so i run bellow command for create new app of reactjs.

create-react-app hello-world

But when I run above command I found one error “/usr/bin/env: ‘node’: No such file or directory”. I thought what will be issue, I searched on google and finally, I found how to solve this issue.

I found I have to install node. We can install by following command:

apt-get install nodejs-legacy

After run above command, I solved my issue. I hope it can help you…

Also Read:

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this article:

RSS2k
Follow by Email0
Facebook780
Twitter3k
120
29k
130k
error

Please spread the word :)