Sunday, June 14, 2015

Cordova Command Does Nothing on Ubuntu 14.04 LTS

Hi,

If you install Apache Cordova and find running the Cordova command does nothing and rule out all the usual suspects (not installing Ant, not installing Java, clearing the npm cache etc.) the problem is that the cordova script references node instead of the nodejs command. Changing it doesn't help unless you change all the scripts.

Run which nodejs and which node and you will see the problem

See this post for a description:

http://stackoverflow.com/questions/22457834/what-is-the-difference-between-node-vs-nodejs-command-in-terminal

What needs to be done is to symlink the /usr/sbin/node to the /usr/bin/nodejs file . See the following for a description of the problem.

http://stackoverflow.com/questions/22457834/what-is-the-difference-between-node-vs-nodejs-command-in-terminal

Hope this helps someone

4 comments:

  1. This blog can solve many queries of programmers. I will suggest my friends this website because from this they can learn many things, and can polish their abilities.

    ReplyDelete
  2. I was having a problem with this for a long time now. Thank you so much for clearing up what the actual problem was. Really appreciate your efforts.

    ReplyDelete
  3. Thanks for describing this process. I think that the information is valuable and we can always ask you for any assistance when it is needed.

    ReplyDelete