Just when you are finished installing nodejs in your fresh shiny Ubuntu box and issue your first cordova create app command you get this annoying
/usr/bin/env:node: No Such file or directory
Which looks like this
And you think what went wrong.
Apparently this stupid error is because you decided to do sudo apt-get install nodejs
In short Ubuntu's default code repository renames node as nodejs to avoid some weird conflict. And you just got caught in between.
Fortunately a one line symlink is enough to fix it for us.
So just issue the following and you rare good to go
sudo ln -s /usr/bin/nodejs /usr/bin/node
/usr/bin/env:node: No Such file or directory
Which looks like this
And you think what went wrong.
Apparently this stupid error is because you decided to do sudo apt-get install nodejs
In short Ubuntu's default code repository renames node as nodejs to avoid some weird conflict. And you just got caught in between.
Fortunately a one line symlink is enough to fix it for us.
So just issue the following and you rare good to go
sudo ln -s /usr/bin/nodejs /usr/bin/node
Comments
Post a Comment