Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find module express #9

Open
waelHamed opened this issue Sep 4, 2016 · 2 comments
Open

cannot find module express #9

waelHamed opened this issue Sep 4, 2016 · 2 comments

Comments

@waelHamed
Copy link

hi

i cloned the react-todo-list and when i tried to execute the command

node server.js

the next error appear in my cmd

C:\Users\wael\Documents\react-todo-list\server>node server.js
module.js:457
throw err;
^

Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\wael\Documents\react-todo-list\server\server
.js:1:77)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)

C:\Users\wael\Documents\react-todo-list\server>

also i wish to ask about that part-3-start part because i don't know what is that .

thanks in advance .

@kweiberth
Copy link
Owner

@maskspy make sure you run npm install in the project directory. This will download all of the required dependencies listed in the package.json file.

There are many branches in this repository, each corresponding to the start of one of my video lessons. part-3-start branch is the state of the repo at the start of my Part 3 lesson.

@kkodali
Copy link

kkodali commented Sep 12, 2016

For branches try git checkout part-3-start then you have to root again into that folder and go through following to avoid the error you mentioned.
run : npm install
run: node server/server.js
run: npm run serve
Now open you browser localhost:3000 you should be good to go.

In simple words, your command should be "node server/server.js"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants