ItSolutionStuff.com

Ubuntu - "/usr/bin/env: ‘node’: No Such File or Directory" - Solved

By Hardik Savani • May 1, 2024
Installation Ubuntu Node JS React JS


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...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Ubuntu PHP bz2 Extension Install Commands Example

Read Now →

Ubuntu PHP bcmath Extension Install Commands Example

Read Now →

Ubuntu PHP ZIP Extension Install Commands Example

Read Now →

How to Install PHP XML Extension in Ubuntu?

Read Now →

How to Increase memory_limit in PHP Ubuntu?

Read Now →

How to Install Composer in Ubuntu Server?

Read Now →

How to Export Mysql Database using Command Line in Ubuntu?

Read Now →

How to Import Database in Mysql using Command Line in Ubuntu?

Read Now →

How to Upgrade PHP Version from 7.3 to 7.4 in Ubuntu?

Read Now →

How to Install Laravel in Ubuntu?

Read Now →

How to Connect MySQL Database in Node JS?

Read Now →

Laravel Authenticate User in NodeJS with Socket io using JWT

Read Now →

How to Get php.ini File Path in Ubuntu?

Read Now →

How to Upgrade Node.js Version in Ubuntu?

Read Now →

How to Use Foreach Object in Node.js?

Read Now →