run npm command gives error “/usr/bin/env: node: No such file or directory”

Wajeeh Ahsan
1 min readSep 23, 2020

--

I stucked in this issue while setting up a project an I’ve found this is often a misnaming error, if you install from a package manager you bin may be called nodejs so you just need to symlink it like so

ln -s /usr/bin/nodejs /usr/bin/node

Here we GO..!!

--

--

Wajeeh Ahsan
Wajeeh Ahsan

No responses yet