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

node seed.js fails #15

Open
r-wells opened this issue Aug 22, 2019 · 1 comment
Open

node seed.js fails #15

r-wells opened this issue Aug 22, 2019 · 1 comment

Comments

@r-wells
Copy link

r-wells commented Aug 22, 2019

I'm running through the React course now and just installed MongoDB. I run node seed.js and get the error:

Ryan@DESKTOP-ILLP59F MINGW64 ~/Desktop/code-projects/react/Section 8- Calling Backend Services/start/vidly-api-node (master)
$ node seed.js
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'joi'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\Ryan\Desktop\code-projects\react\Section 8-
Calling Backend Services\start\vidly-api-node\models\genre.js:1:13)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Is joi not initialized on the project?

@rustemjantayev
Copy link

Yes, you have to install it

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

2 participants