Skip to content

Commit

Permalink
start backend without using nodemon
Browse files Browse the repository at this point in the history
Fixes:
```
> nodemon server.js

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module '../lib/cli'
Require stack:
- /var/app/current/node_modules/.bin/nodemon
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/var/app/current/node_modules/.bin/nodemon:3:13)
    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)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/var/app/current/node_modules/.bin/nodemon' ]
}
```

Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Oct 13, 2022
1 parent 86be923 commit f7688de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion back-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Discover dapps backend",
"main": "server.js",
"scripts": {
"start": "nodemon server.js",
"start": "node server.js",
"devel": "nodemon server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Status",
Expand Down

0 comments on commit f7688de

Please sign in to comment.