. . .

Ubuntu – “node: No such file or directory” error on using express-generator

Published: September 4, 2015

On This Page

    Issue: After you install express-generator on your Ubuntu machine and try to run it like

    express -h

    You may encounter an error saying “/usr/bin/env: node: No such file or directory”

    Solution: The issue is that the Node executable for Ubuntu is nodejs instead of node. So to get around this situation, we can create a symbolic link for nodejs and name it “node”.

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

    First command will tell you where, iin your system “nodejs” is and where you need to create that symbolic link. The second command actually creates the link. In this command change the path i.e. “/usr/bin” to suit your need.

    Don't forget to share this post

      Let's Build Digital Excellence Together


      • Cost Efficient Solutions.
      • Minimal Timelines.
      • Effective Communication.
      • High Quality Standards.
      • Lifetime Support.
      • Transparent Execution.
      • 24/7 Availability.
      • Scalable Teams.

      Join Our 200+ Happy Clients Across Globe


      Free Consultation.

        Do you need tech help of your startup/business? Experts from our team will get in touch with you.

        Please do not post jobs/internships inquiries here.