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 8348771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:47:25+00:00 2026-06-09T07:47:25+00:00

I have installed Node.js through the installer on their webpage and added it’s path

  • 0

I have installed Node.js through the installer on their webpage and added it’s path to my environment variable so I can use node and npm through the command line. If I make an express app, it works, but I have to create it manually.

This is fine I guess, but I was wondering why I can’t use the express command? I am getting

`express` is not recognized as an internal or external command, operable program or batch file.

I noticed that express installs in C:\Username\node_modules instead of where I thought it would go, in C:\Program Files\Nodejs\node_modules. Is this a problem?

  • 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-09T07:47:27+00:00Added an answer on June 9, 2026 at 7:47 am

    Although this is not necessarily a problem, it’s annoying and and error is an error even if you can navigate around it.

    Although you can reference other node modules even if they are not in the node directory, as far as I understand node requires the modules to be in the node_modules folder within the Nodejs directory in order to automatically find them. (I had a similar issue on osx and this method solved it.)

    Try moving the contents of

    C:\Username\node_modules into C:\Program Files\Nodejs\node_modules\

    Alternatively,

    You can also install modules globally with:

    npm install express -g
    

    which allows you to access them without having to worry about your node directory, although these are then more difficult to manage and “you should try to avoid if you can”.

    From the Node Blog:

    Just like how global variables are kind of gross, but also necessary
    in some cases, global packages are important, but best avoided if not
    needed.

    In general, the rule of thumb is:

    If you’re installing something that you want to use in your program,
    using require(‘whatever’), then install it locally, at the root of
    your project. If you’re installing something that you want to use in
    your shell, on the command line or something, install it globally, so
    that its binaries end up in your PATH environment variable.

    Resources

    • Related SO question/answers
    • The Node blog post
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few installs—notably Node, MacVim, and Taskwarrior—which I installed through the installers
I've installed node-qunit (stable) from npm, but can't seem to get any tests working.
I have installed the latest node.js from here . I see the %Path% variables
Have installed Node version manager 'n'. Installed 'mocha' using n npm 0.6.4 install mocha
I'm running node.js on OSX and have just installed mongodb using command npm install
I have installed node-qunit using npm and this appeared to work correctly. The following
I'm newbie about node.js and mongodb. I have already installed mongodb, but I can't
I have a perl script (call it worker) installed on each node/machine (4 total)
I have installed team foundation server 2012 express and am wanting to connect through
I have been trying to setup Symfony2 on Windows so that I can use

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.