Is not recognized as an internal or external command operable program or batch file node?

Derek Barnes

unread,

Oct 2, 2013, 4:13:46 AM10/2/13

to

Hey all,

I'm completely new to Express and Node.js in general. I'm working through the book "Sams Teach Yourself Node.js in 24 Hours". 

Everything is fine until Ch. 6 which says to install Express:

npm install -g express

That seems to go fine...bunch of stuff looks like it's installing. I check the folder it has installed to (C:\Users\\AppData\Roaming\npm\node_modules\express) and there are a bunch of files as expected.

Next I type:

express express_example

...and get the error:

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

I'm working under Windows 7 Enterprise.

Any thoughts why I can't get this to work?

greelgorke

unread,

Oct 4, 2013, 3:53:52 PM10/4/13

to

Paul Vencill

unread,

Oct 4, 2013, 9:08:00 PM10/4/13

to

I think the command is different for windows, but I'm not on a windows env so I'm not sure what it should be

Angel Java Lopez

unread,

Oct 4, 2013, 9:12:16 PM10/4/13

to

Ah!

Maybe you have not NPM global modules in your path

Try add c:\Users\\AppData\Roaming\npm to your path

I had a similar issue in one machine, Windows 8. I installed node.js with user A, I can use Node.js with user B, and NPM too. But in User B, I had to manually add the above folder to my path.

Angel "Java" Lopez

@ajlopez

Derek Barnes

unread,

Oct 11, 2013, 1:17:51 AM10/11/13

to

Yup...this was it. Thanks so much!

kikit

unread,

Mar 5, 2014, 6:57:52 PM3/5/14

to

I have facing the same problem and also follow the instruction given by Paul but i still getting the same error...... Plz help ...

Jonathan Ong

unread,

Mar 10, 2014, 1:40:32 PM3/10/14

to

@nk

unread,

Feb 6, 2015, 4:04:16 PM2/6/15

to

Hi,

try to run command

npm install -g express-generator

this will install additional files for Express 4.X

then run the command prompt as administrator

and try to execute express command to see it works

express -h

It worked for me

if it doesn't works

reinstall node.js 

and try again.

No answer to this question. Be the first to respond.

Your answer

  • All categories
  • Is not recognized as an internal or external command operable program or batch file node?
    Apache Kafka (84)
  • Is not recognized as an internal or external command operable program or batch file node?
    Apache Spark (596)
  • Is not recognized as an internal or external command operable program or batch file node?
    Azure (131)
  • Is not recognized as an internal or external command operable program or batch file node?
    Big Data Hadoop (1,907)
  • Is not recognized as an internal or external command operable program or batch file node?
    Blockchain (1,673)
  • Is not recognized as an internal or external command operable program or batch file node?
    C# (124)
  • Is not recognized as an internal or external command operable program or batch file node?
    C++ (268)
  • Is not recognized as an internal or external command operable program or batch file node?
    Career Counselling (1,060)
  • Is not recognized as an internal or external command operable program or batch file node?
    Cloud Computing (3,356)
  • Is not recognized as an internal or external command operable program or batch file node?
    Cyber Security & Ethical Hacking (145)
  • Is not recognized as an internal or external command operable program or batch file node?
    Data Analytics (1,266)
  • Is not recognized as an internal or external command operable program or batch file node?
    Database (853)
  • Is not recognized as an internal or external command operable program or batch file node?
    Data Science (75)
  • Is not recognized as an internal or external command operable program or batch file node?
    DevOps & Agile (3,500)
  • Is not recognized as an internal or external command operable program or batch file node?
    Digital Marketing (111)
  • Is not recognized as an internal or external command operable program or batch file node?
    Events & Trending Topics (28)
  • Is not recognized as an internal or external command operable program or batch file node?
    IoT (Internet of Things) (387)
  • Is not recognized as an internal or external command operable program or batch file node?
    Java (1,178)
  • Is not recognized as an internal or external command operable program or batch file node?
    Kotlin (3)
  • Is not recognized as an internal or external command operable program or batch file node?
    Linux Administration (384)
  • Is not recognized as an internal or external command operable program or batch file node?
    Machine Learning (337)
  • Is not recognized as an internal or external command operable program or batch file node?
    MicroStrategy (6)
  • Is not recognized as an internal or external command operable program or batch file node?
    PMP (423)
  • Is not recognized as an internal or external command operable program or batch file node?
    Power BI (516)
  • Is not recognized as an internal or external command operable program or batch file node?
    Python (3,154)
  • Is not recognized as an internal or external command operable program or batch file node?
    RPA (650)
  • Is not recognized as an internal or external command operable program or batch file node?
    SalesForce (92)
  • Is not recognized as an internal or external command operable program or batch file node?
    Selenium (1,569)
  • Is not recognized as an internal or external command operable program or batch file node?
    Software Testing (56)
  • Is not recognized as an internal or external command operable program or batch file node?
    Tableau (608)
  • Is not recognized as an internal or external command operable program or batch file node?
    Talend (73)
  • Is not recognized as an internal or external command operable program or batch file node?
    TypeSript (124)
  • Is not recognized as an internal or external command operable program or batch file node?
    Web Development (2,999)
  • Is not recognized as an internal or external command operable program or batch file node?
    Ask us Anything! (66)
  • Is not recognized as an internal or external command operable program or batch file node?
    Others (1,214)
  • Is not recognized as an internal or external command operable program or batch file node?
    Mobile Development (46)

Join the world's most active Tech Community!

Welcome back to the World's most active Tech Community!

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

How do you fix node is not recognized as an internal or external command?

Open control panel => system & security => system => advanced system settings => environment variables.
Open control panel => system & security => system => advanced system settings => environment variables..
In “User variables” or “System variables” look for variable PATH and include Node JS folder path..

How do you fix node is not recognized as an internal or external command operable program or batch file in VS Code?

You must click the Kill Terminal button (highlighted) and then restart VS Code and node will start working again.

How do I fix npm not recognized?

The error “npm is not recognized as an internal or external command” error may occur because either the npm is not installed or it is not added to the windows path. To resolve this error, the first solution is to install Node. js on Windows as Node. js is equipped with npm by default.

Is not recognized as an internal or external command batch file?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues.