Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Karma-Runner on Ubuntu: 'usr/bin/env: node: No such file or directory' error

I am trying to set up the JavaScript code tester Karma, but when I run the command to initialise karma I get the error 'usr/bin/env: node: No such file or directory'. How can I fix it?

like image 738
Luke Madhanga Avatar asked Sep 12 '14 08:09

Luke Madhanga


2 Answers

As per @digitalmediums

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 "sudo ln -s /usr/bin/nodejs /usr/bin/node"

like image 147
Luke Madhanga Avatar answered Oct 13 '22 17:10

Luke Madhanga


sudo ln -s /usr/bin/nodejs /usr/bin/node this worked for me. node is a reserved term in ubuntu thus node.js is actually nodejs.

like image 32
Justin Avatar answered Oct 13 '22 15:10

Justin