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

Starting issue "npm run start" #2

Open
semaf opened this issue Dec 6, 2022 · 1 comment
Open

Starting issue "npm run start" #2

semaf opened this issue Dec 6, 2022 · 1 comment

Comments

@semaf
Copy link

semaf commented Dec 6, 2022

Hey,

Getting the error I cant fix.

pi@raspberry:~/telegram-shop/telegram $ npm run start

> telegram@1.0.0 start
> nodemon -r dotenv/config app.js

[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node -r dotenv/config app.js`
node:internal/validators:162
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:387:5)
    at validateString (node:internal/validators:162:11)
    at Url.parse (node:url:168:3)
    at Object.urlParse [as parse] (node:url:155:13)
    at new Sequelize (/home/mi/telegram-shop/telegram/node_modules/sequelize/lib/sequelize.js:186:28)
    at Object.<anonymous> (/home/mi/telegram-shop/telegram/database/index.js:4:19)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12) {
  code: 'ERR_INVALID_ARG_TYPE'
}
[nodemon] app crashed - waiting for file changes before starting...
@semaf semaf changed the title Web dashboard planned? Starting issue "npm run start" Dec 6, 2022
@jeraldlyh
Copy link
Owner

hello, it seems like you did not create a .env file to load the environment variable for your database

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