i have a problem, how can i fix this;
Hey @mryagiz, Welcome To Forums.
First of all that error is thrown when in package.json
, you want to start node app but it cannot find server.js
under scripts
tag.
Therefore, to fix change your package.json
's scripts as (assuming your main file is bot.js
as in picture)
"scripts": {
"start": "node bot.js"
},
1 Like
Welcome @mryagiz,
To solve this issue, you will need to either create app/server.js
file or you’ll have to remove every string which contains the requirement of the file (since the file does not exist in your project).
Thanks and cheers.
1 Like