Discussion:
Error : 'express' is not recognized as an internal or external command, operable program or batch file.
Derek Barnes
2013-10-01 20:13:46 UTC
Permalink
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\<myusername>\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?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
greelgorke
2013-10-04 07:53:52 UTC
Permalink
you should repost it in the nodejs group since it's a general node/npm
issue not an express issue:
https://groups.google.com/forum/?fromgroups#!forum/nodejs
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
Paul Vencill
2013-10-04 13:08:00 UTC
Permalink
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
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
Angel Java Lopez
2013-10-04 13:12:16 UTC
Permalink
Ah!

Maybe you have not NPM global modules in your path

Try add c:\Users\<youruser>\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
Post by Paul Vencill
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
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google Groups
"Express" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
Derek Barnes
2013-10-10 17:17:51 UTC
Permalink
Yup...this was it. Thanks so much!
Post by Angel Java Lopez
Ah!
Maybe you have not NPM global modules in your path
Try add c:\Users\<youruser>\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
Post by Paul Vencill
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
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google
Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send
.
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Express" group.
To unsubscribe from this group and stop receiving emails from it, send an
.
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/groups/opt_out.
kikit
2014-03-05 10:57:52 UTC
Permalink
I have facing the same problem and also follow the instruction given by
Paul but i still getting the same error...... Plz help ...
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/d/optout.
Jonathan Ong
2014-03-10 05:40:32 UTC
Permalink
you want to install the generator
now: https://github.com/expressjs/generator#quick-start
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to express-js-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/d/optout.
@nk
2015-02-06 08:04:16 UTC
Permalink
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.
for more information check out
this http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/
Post by Derek Barnes
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".
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\<myusername>\AppData\Roaming\npm\node_modules\express) and there
are a bunch of files as expected.
express express_example
'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?
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+***@googlegroups.com.
To post to this group, send email to express-***@googlegroups.com.
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/d/optout.
Loading...