Home > other >  CocosCreate server initialization
CocosCreate server initialization

Time:09-26

1, the first new folder to save the server as a directory

2, enter the directory, input instructions * * NPM init * * server initialization of


3, after the success will be in change directory to automatically create a * * package. The json file * *

4, enter * * NPM install express - save * * and * * NPM install express - ws - save * * instruction to install express framework,

Note: - save after it is only in the scheme framework installation, no will be installed to the global, the former can be installed short link, which can be installed long link



After the success of the installation directory structure as shown in the figure below


The server's initial installation completed
  • Related