so I did npm install express according to the tutorial, after installing express I did
'express --version'
and express is not in my path. I am wondering what I did wrong or is there any way to test if express works on my OS.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Did you use
npm install expressornpm install express -g?The second command is what you should use if you want to use the express program from the command line. The
-goption installs the library globally.The first command will just install the library in a
node_modulessubfolder, and you would need to explicitly locate the program before using it, eg.node ./node_modules/express/bin/express(I’m not sure if that’s the right command, just an example).