Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error /usr/bin/env: node : Permission Denied

I have done my ODOO v9 installation on my server(Centos). Everything has been installed successfully . Login page is also working but after login I am getting a page with following error

/usr/bin/env : node : Permission Denied

I tried to change the permission but my issue is not solved. Is anyone know what is this error?

screen shot

like image 339
aneesh Avatar asked Nov 10 '22 01:11

aneesh


1 Answers

One possible reason you'd get the error you describe is that your distro package maintainers have reserved the name 'node' for something besides nodejs. If this is the case, the binary you want to use (npm will want to use) will be called 'nodejs'. To check this, run:

which node

If you don't get a path to a node binary back, it may be your problem is what I described above, then try:

which nodejs

If you get back a binary path, then you can then take the output, eg: /usr/bin/nodejs and run:

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

And you'll have a functioning nodejs installation.

Don't ask me why the maintainers of npm on these platforms aren't calling to nodejs. And don't ask me why a package installed by less than a tenth of a percent of linux users gets to own the name 'node' over 'nodejs' which a very large fraction - I suspect a double digit percentage - of linux users install. Some things just can't be explained.

like image 196
Matt Murphy Avatar answered Nov 14 '22 21:11

Matt Murphy