colyseus / colyseus-examples

Examples for learning how Colyseus works
https://examples.colyseus.dev/
MIT License
177 stars 90 forks source link

`npm start` on Windows10 throws error, fixed by minor change to package.json #6

Closed derricw closed 6 years ago

derricw commented 6 years ago

Here is the error:

colyseus-examples@1.0.0 start C:\Users\derricw\Documents\github\colyseus-examples nodemon --watch '*/.ts' --exec 'ts-node' index.ts

[nodemon] 1.12.1 [nodemon] to restart at any time, enter rs [nodemon] watching: '*/.ts' [nodemon] starting 'ts-node' index.ts ''ts-node'' is not recognized as an internal or external command, operable program or batch file. [nodemon] app crashed - waiting for file changes before starting...

And I fixed it by deleting the single quotes around 'ts-node' in line 7 in package.json from:

"start": "nodemon --watch '**/*.ts' --exec 'ts-node' index.ts", to: "start": "nodemon --watch '**/*.ts' --exec ts-node index.ts",

endel commented 6 years ago

Thanks a lot @derricw! I've just applied this change as you suggested. Cheers!