Skip to content

Can not start server #1

@vqdc

Description

@vqdc

The log like:
E:\Projects\Cocos\scrabble\server>npm start

server@1.0.0 start E:\Projects\Cocos\scrabble\server
concurrently --kill-others "tsc src/index.ts -w --outDir dist" "nodemon dist/index.js"

[1] [nodemon] 2.0.2
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] watching dir(s): .
[1] [nodemon] watching extensions: js,mjs,json
[1] [nodemon] starting node dist/index.js index.js
[1] internal/modules/cjs/loader.js:797
[1] throw err;
[1] ^
[1]
[1] Error: Cannot find module 'E:\Projects\Cocos\scrabble\server\index.js'
[1] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
[1] at Function.Module._load (internal/modules/cjs/loader.js:687:27)
[1] at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
[1] at internal/main/run_main_module.js:17:11 {
[1] code: 'MODULE_NOT_FOUND',
[1] requireStack: []
[1] }
[1] [nodemon] app crashed - waiting for file changes before starting...
[0] error TS5023: Unknown option 'w'
[0] Use the '--help' flag to see options.
[0] E:\Projects\Cocos\scrabble\server\src\index.ts(6,15): error TS1005: '=' expected.
[0] E:\Projects\Cocos\scrabble\server\src\index.ts(6,20): error TS1005: ';' expected.
[0] E:\Projects\Cocos\scrabble\server\src\index.ts(8,1): error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.
[0] tsc src/index.ts -w --outDir dist exited with code 1
--> Sending SIGTERM to other processes..
[1] nodemon dist/index.js exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 start: concurrently --kill-others "tsc src/index.ts -w --outDir dist" "nodemon dist/index.js"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.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! C:\Users\vien.nguyenminh\AppData\Roaming\npm-cache_logs\2020-01-13T07_06_16_955Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions