deepwel / Chinese-Annotator

Annotator for Chinese Text Corpus (UNDER DEVELOPMENT) 中文文本标注工具
Apache License 2.0
1.46k stars 330 forks source link

while i run the end of readMe named yarn start, errors "错误: 找不到或无法加载主类 start" #63

Open smartcatdog opened 5 years ago

smartcatdog commented 5 years ago
**Chinese Annotator version** (e.g. `0.1`): **Used backend / pipeline** (`jieba`, `sklearn`, ...): **Operating system** (windows, osx, ...): **Issue**: **Proposed New Feature**: **Content of configuration file** (if used & relevant): ```json ``` the end of readMe named yarn start , there are errors: yarn start 错误: 找不到或无法加载主类 start And view the log under web folder, tail log information is 20 error code ELIFECYCLE 21 error errno 1 22 error cn_annotator@0.1.0 serve: vue-cli-service serve 22 error Exit status 1 23 error Failed at the cn_annotator@0.1.0 serve script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ] ~ view yarn , it appears: ``` Usage: yarn [--config confdir] [COMMAND | CLASSNAME] CLASSNAME run the class named CLASSNAME or where COMMAND is one of: resourcemanager -format-state-store deletes the RMStateStore resourcemanager run the ResourceManager nodemanager run a nodemanager on each slave timelineserver run the timeline server rmadmin admin tools sharedcachemanager run the SharedCacheManager daemon scmadmin SharedCacheManager admin tools version print the version jar run a jar file application prints application(s) report/kill application applicationattempt prints applicationattempt(s) report container prints container(s) report node prints node report(s) queue prints queue information logs dump container logs classpath prints the class path needed to get the Hadoop jar and the required libraries cluster prints cluster information daemonlog get/set the log level for each daemon ``` there is no start. if i run `npm run serve`, i will got ` > vue-cli-service serve INFO Starting development server... 10% building 2/2 modules 0 activeevents.js:174 throw er; // Unhandled 'error' event ^ Error: getaddrinfo ENOTFOUND x86_64-apple-darwin13.4.0 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26) Emitted 'error' event at: at GetAddrInfoReqWrap.doListen [as callback] (net.js:1457:12) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cn_annotator@0.1.0 serve: `vue-cli-service serve` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cn_annotator@0.1.0 serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ` what happend? thx
smartcatdog commented 5 years ago

it is ok. while yarn start is failed because there is no command. Use npm run serve is ok

sjy commented 5 years ago

Please install yarn globally first.

npm install -g yarn