I`ve made a project for my own purpose (to-do list + communication with Telegram bot)
I finished my work yesterday without any error, any major change in files etc. and i just can run “npm start” now.
Here is my logs:
app.set('port', port);
^
TypeError: app.set is not a function
at Object.<anonymous> (C:todoloveappbinwww:16:5)
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:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
Tried to do every solution from Google (clean cache, delete node_modules and package.json.lock and force install) and it`s not working.
I know, maybe it`s small problem but i really wants to continue my programming adventure!