Search code examples
firebasefirebase-hosting

Firebase init is not working with ubuntu 14.04


Firebase init is not working on ubuntu 14.04. This is the error i get everytime i try to execute this command. Thank you for helping me.

/usr/bin/env: node: no such file or directory


Solution

  • i finally found how to deal with it. first of all it is a node problem, so i should remove it then just create a symlink of nodejs to node.

     sudo apt-get remove --purge node
     sudo rm /usr/bin/node
     sudo ln -s /usr/bin/nodejs /usr/bin/node
     firebase init
    

    and it works.