Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start server #1

Open
vqdc opened this issue Jan 13, 2020 · 0 comments
Open

Can not start server #1

vqdc opened this issue Jan 13, 2020 · 0 comments

Comments

@vqdc
Copy link

vqdc commented Jan 13, 2020

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

[email protected] 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! [email protected] 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 [email protected] 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant