mycard / srvpro

A server for YGOPro
GNU Affero General Public License v3.0
188 stars 76 forks source link

script in wiki can't work #17

Closed cyber-nova closed 5 years ago

cyber-nova commented 5 years ago

the script in wiki for Ubuntu 18 `npm WARN saveError ENOENT: no such file or directory, open '/root/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current:{"os":"linux","arch":"x64"})`

how to fix it

purerosefallen commented 5 years ago

The working directory may be incorrect. Please run npm install in the your directory of srvpro. In script it should be ~/ygopro-server, or /root/ygopro-server on your machine. Did you forget cd ygopro-server after cloning the repo?

cyber-nova commented 5 years ago

thanks for help, but ln: failed to create symbolic link '.'$'\r': File exists ln: failed to create symbolic link '.'$'\r': File exists mkdir: cannot create directory ‘config\r’: File exists cp: cannot create regular file 'config/config.json'$'\r': No such file or directory which files should be removed

purerosefallen commented 5 years ago

Not every of the 4 lns are really necessary. Depending on your OS, only 2 of them are needed. So ignore the errors from ln. For the config, just keep the directory created, and place data/default_config.json into config/config.json. If exists, just edit it as you like.