youtubeclone-backend icon indicating copy to clipboard operation
youtubeclone-backend copied to clipboard

Cannot find dev script inside package.json file

Open gkingsley88 opened this issue 4 years ago • 2 comments

When running 'npm run dev' the error is: Err Missing script: "dev"

Can you show me how to fix?

gkingsley88 avatar Oct 26 '21 05:10 gkingsley88

That's weird and shouldn't happen. Make sure that you run the command inside the root of this repo

manikandanraji avatar Oct 26 '21 08:10 manikandanraji

Thank yo, Ok so i got rid of that error.. now I am getting this after npm run dev

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined at new NodeError (internal/errors.js:322:7) at validateString (internal/validators.js:124:11) at Url.parse (url.js:171:3) at Object.urlParse [as parse] (url.js:158:13) at new Sequelize (C:\Users\gking\youtubeclone-backend\node_modules\sequelize\lib\sequelize.js:185:28) at Object. (C:\Users\gking\youtubeclone-backend\src\sequelize.js:11:19) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) { code: 'ERR_INVALID_ARG_TYPE' } [nodemon] app crashed - waiting for file changes before starting...

gkingsley88 avatar Oct 27 '21 00:10 gkingsley88