Closed Sadanandgadwal closed 3 years ago
@yesg07 please show the complete error. and did you set up a .env file?
I have done
On Sun, 9 May, 2021, 2:03 am Anant Mathur, @.***> wrote:
@yesg07 https://github.com/yesg07 please show the complete error. and did you set up a .env file?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Anantm007/Dev-Bookstore/issues/7#issuecomment-835501870, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7TBENLHZSOBG4UWFI2NPTTMWNZVANCNFSM44N3M2RA .
Please scroll up and show the complete error
[0]
[0] > ecommerce@1.0.0 server C:\Users\sadan\dev-bookstore-master
[0] > nodemon app
[0]
[1]
[1] > ecommerce@1.0.0 client C:\Users\sadan\dev-bookstore-master
[1] > npm start --prefix client
[1]
[0] [nodemon] 1.19.4
[0] [nodemon] to restart at any time, enter rs
[0] [nodemon] watching dir(s): .
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting node app.js
[0] C:\Users\sadan\dev-bookstore-master\node_modules\express-jwt\lib\index.js:20
[0] if (!options || !options.secret) throw new Error('secret should be set');
[0] ^
[0]
[0] Error: secret should be set
[0] at module.exports (C:\Users\sadan\dev-bookstore-master\node_modules\express-jwt\lib\index.js:20:42)
[0] at Object.PORT=3010 react-scripts start
[1] npm ERR! Exit status 1
[1] npm ERR!
npm ERR! Failed at the client@0.1.0 start script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR! C:\Users\sadan\AppData\Roaming\npm-cache_logs\2021-05-08T20_46_16_002Z-debug.log
[1] npm ERR! code ELIFECYCLE
npm ERR! errno 1
[1] npm ERR! ecommerce@1.0.0 client: npm start --prefix client
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the ecommerce@1.0.0 client script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR! C:\Users\sadan\AppData\Roaming\npm-cache_logs\2021-05-08T20_46_16_224Z-debug.log
[1] npm run client exited with code 1
@yesg07 please remind me in a couple of hours. Will see after office work.
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ecommerce@1.0.0 start:
node app
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ecommerce@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: