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

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

Open
smartcatdog opened this issue Aug 6, 2019 · 2 comments

Comments

@smartcatdog
Copy link

smartcatdog commented Aug 6, 2019

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):

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 <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
Copy link
Author

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

@sjy
Copy link
Contributor

sjy commented Aug 7, 2019

Please install yarn globally first.

npm install -g yarn

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

2 participants