Anantm007 / Dev-Bookstore

A MERN stack e-commerce app that sells developer books
https://devbookstore.herokuapp.com/
MIT License
22 stars 8 forks source link

npm ERR! code ELIFECYCLE #7

Closed Sadanandgadwal closed 3 years ago

Sadanandgadwal commented 3 years ago

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: Screenshot (10)

Anantm007 commented 3 years ago

@yesg07 please show the complete error. and did you set up a .env file?

Sadanandgadwal commented 3 years ago

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 .

Anantm007 commented 3 years ago

Please scroll up and show the complete error

Sadanandgadwal commented 3 years ago

[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. (C:\Users\sadan\dev-bookstore-master\controllers\auth.js:106:25) [0] at Module._compile (internal/modules/cjs/loader.js:1063:30) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) [0] at Module.load (internal/modules/cjs/loader.js:928:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:769:14) [0] at Module.require (internal/modules/cjs/loader.js:952:19) [0] at require (internal/modules/cjs/helpers.js:88:18) [0] at Object. (C:\Users\sadan\dev-bookstore-master\routes\auth.js:6:35) [0] at Module._compile (internal/modules/cjs/loader.js:1063:30) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) [0] at Module.load (internal/modules/cjs/loader.js:928:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:769:14) [0] at Module.require (internal/modules/cjs/loader.js:952:19) [0] at require (internal/modules/cjs/helpers.js:88:18) [0] at Object. (C:\Users\sadan\dev-bookstore-master\app.js:19:20) [0] [nodemon] app crashed - waiting for file changes before starting... [1] [1] > client@0.1.0 start C:\Users\sadan\dev-bookstore-master\client [1] > PORT=3010 react-scripts start [1] [1] 'PORT' is not recognized as an internal or external command, [1] operable program or batch file. [1] npm ERR! code ELIFECYCLE npm ERR! errno 1 [1] npm ERR! client@0.1.0 start: 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 Screenshot (15) Screenshot (16)

Anantm007 commented 3 years ago

@yesg07 please remind me in a couple of hours. Will see after office work.