yTakkar/React-Instagram-Clone-2.0

I am getting an error after npm start

ryptozee opened this issue · 10 comments

internal/modules/cjs/loader.js:573
throw err;
^

Error: Cannot find module 'dotenv'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
at Function.Module._load (internal/modules/cjs/loader.js:497:25)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/ryptozee/Documents/Projects/React-Instagram-Clone-2.0/app.js:9:1)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)

It's because dotenv module isn't installed.

Run npm install to install.

Can you provide the error log

You have to create a .env file as mentioned in step no. 4.
client-session expects a secret key, so add SESSION_SECRET_LETTER in .env file with any random key.

eg. rkjbv42klrbc4hjrbv4jhrvb,
averysecretkey

Image Processing is indirectly handled by GraphicsMagick.
So install it as mentioned in the requirement section