From f7688de85db1f3153166efd4817bc77f402ed15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 13 Oct 2022 13:00:49 +0200 Subject: [PATCH] start backend without using nodemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. (/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 --- back-end/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back-end/package.json b/back-end/package.json index 23106ef..c645c30 100644 --- a/back-end/package.json +++ b/back-end/package.json @@ -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",