Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9309391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:51:12+00:00 2026-06-19T00:51:12+00:00

I installed node with apt-get install nodejs . Then I installed npm with apt-get

  • 0

I installed node with apt-get install nodejs. Then I installed npm with apt-get install npm. Now when I try to run express I get

$ express 
/usr/bin/env: node: No such file or directory

How do I resolve this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T00:51:14+00:00Added an answer on June 19, 2026 at 12:51 am

    There are two package in Ubuntu that have similar names, node and nodejs.

    node does this,

    Description-en: Amateur Packet Radio Node program. The node program accepts TCP/IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using a variety of amateur radio protocols.

    nodejs does this,

    Description-en: Node.js event-based server-side javascript engine Node.js is similar in design to and influenced by systems like Ruby’s Event Machine or Python’s Twisted. It takes the event model a bit further – it presents the event loop as a language construct instead of as a library. Node.js is bundled with several useful libraries to handle server tasks : System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX, HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.

    Fedora also follows a similar package naming scheme. Because of this, the binary in nodejs had to be renamed to nodejs from the original node. However, this isn’t technically kosher: and most nodejs programs (and libraries installed with npm) assume that the node binary is node. If you want to get around this the easiest way is just symlink the two together. If you take this route, don’t install the node package which handles the Amateur Packet Radio stuff.

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

    Alternatively, in the case of node, I’d suggest using n and not installing node. Just install npm (which will install node), then remove npm, then tell apt to clean it up. To do this, simply run

    sudo apt-get install npm
    sudo npm install -g n
    sudo n latest
    sudo apt-get --purge remove npm
    sudo apt-get autoremove
    

    There are other binary distro managers that even work from a shell script like nvm but I personally prefer n. Think of n like an apt for just one thing: the node binary which it installs to /usr/local/bin.

    Why are removing npm? We’re not. apt-get --purge remove can only ever remove things installed by the package manager. n latest works outside of the package manager. There are two npms if you do this,

    1. version installed by the distro (Debian/Ubuntu) using apt-get.
    2. version installed by n latest.

    No point in having the distro’s older version. And, even worse, if that version works it can potentially install to a different location and have Debian modifications in it that assume Debian install directories. It’s better to use either/or but not both.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Installed node-inspector via npm install -g nodeinspector. I can get to the dashboard but
I'm trying to install NPM packages on Ubuntu (12.04). I've installed Node.js and NPM
I'm trying to get npm to install node-gitteh as a dependency via npm install
Have installed Node version manager 'n'. Installed 'mocha' using n npm 0.6.4 install mocha
I have successfully installed Node.js, now I want to install the websocket module found
I installed node v0.8.14 on Mac OS 10.7.5. I then installed Grunt with npm
I npm installed the node-term-ui package, but I keep getting Unexpected string errors, then
So, I have Node.js installed and now when I tried to install Mongoosejs, I
I've installed node, npm and express on my Mac OS 10.6.8 machine. Node has
I have installed Git in ubuntu using the command sudo apt-get install git-core sudo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.