Failed to run the C-server from scratch
When cloned from scratch (on Raspberry Pi, and on Mac) it gives the following error:
The file "dist/server.js" is not generated.
The same works well on my previous workspace (where I have the old package-lock.json).
DBNAME="bonjour" npm run start
> concordant-server@1.1.0 start /private/tmp/yoyo/concordant-server
> babel-node dist/server.js
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module '/private/tmp/yoyo/concordant-server/dist/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at Object.<anonymous> (/private/tmp/yoyo/concordant-server/node_modules/@babel/node/lib/_babel-node.js:180:21)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! concordant-server@1.1.0 start: `babel-node dist/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the concordant-server@1.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/itoumlilt/.npm/_logs/2020-03-03T09_39_55_861Z-debug.log
Edited by Ilyas Toumlilt