出现错误的过程:

mac 系统上使用阿里的X6(@antv/x6)

x6 快速上手:

1   npm install @antv/x6 --save

2   yarn add @antv/x6        此步骤出错:

具体错误信息:

bogon:XXXXX $ yarn add @antv/x6
ERROR: add is not COMMAND nor fully qualified CLASSNAME.
Usage: yarn [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]
or yarn [OPTIONS] CLASSNAME [CLASSNAME OPTIONS]
where CLASSNAME is a user-provided Java class

OPTIONS is none or any of:

--buildpaths attempt to add class files from build tree
--config dir Hadoop config directory
--daemon (start|status|stop) operate on a daemon
--debug turn on shell script debug mode
--help usage information
--hostnames list[,of,host,names] hosts to use in worker mode
--hosts filename list of hosts to use in worker mode
--loglevel level set the log4j level for this command
--workers turn on worker mode

SUBCOMMAND is one of:

Admin Commands:

daemonlog get/set the log level for each daemon
node prints node report(s)
rmadmin admin tools
scmadmin SharedCacheManager admin tools

Client Commands:

applicationattempt prints applicationattempt(s) report
app|application prints application(s) report/kill application/manage long running application
classpath prints the class path needed to get the hadoop jar and the required libraries
cluster prints cluster information
container prints container(s) report
envvars display computed Hadoop environment variables
jar <jar> run a jar file
logs dump container logs
nodeattributes node attributes cli client
queue prints queue information
schedulerconf Updates scheduler configuration
timelinereader run the timeline reader server
top view cluster information
version print the version

Daemon Commands:

nodemanager run a nodemanager on each worker
proxyserver run the web app proxy server
registrydns run the registry DNS server
resourcemanager run the ResourceManager
router run the Router daemon
sharedcachemanager run the SharedCacheManager daemon
timelineserver run the timeline server

SUBCOMMAND may print help when invoked w/o parameters or with -h.

同时 yarn --version 也不能使用

网上搜索到需要安装:yarn

具体安装过程如下:

1、touch ~/.bash_profile

2、open -e ~/.bash_profile

3、source ~/.bash_profile

具体参照:

https://blog.csdn.net/qq_20125211/article/details/86528651

最新文章

  1. Hibernate关联映射 映射文件的配置
  2. WDM驱动和NT驱动之我见
  3. JavaScript 事件绑定及深入
  4. 完美解决AutoCAD2012,AutoCAD2013本身电脑里有NET4.0或以上版本却装不上的问题
  5. onSaveInstanceState() 和 onRestoreInstanceState()
  6. [CLR via C#]25. 线程基础
  7. GeoServer+MySQL安装及配置过程
  8. Mysql数据库的工作原理
  9. Problem 2214 Knapsack problem 福建第六届省赛
  10. 【Cocos2d-X开发学习笔记】第26期:游戏背景之滚动地图背景(CCParallaxNode)的使用
  11. 使用Image.GetThumbnailImage 方法返回缩略图
  12. NOSQL EYE开源
  13. 201521123077 《Java程序设计》第1周学习总结
  14. pyqt的基本组件
  15. C#返回字符串的字节长度,一个中文算两个字符的代码
  16. opcache分享
  17. Learning to rank的讲解,单文档方法(Pointwise),文档对方法(Pairwise),文档列表方法(Listwise)
  18. spring boot 通过Maven + tomcat 自动化部署
  19. ES6必知必会 (四)—— Symbol、Set和Map
  20. Mac环境下安装配置Hadoop伪分布式

热门文章

  1. Java面向对象之instanceof和类型转换
  2. RabbitMQ-01-使用Java进行简单消息发送与接收
  3. Windows下安装和使用Masscan
  4. react lodash节流this找不到正确用法
  5. HJ92 在字符串中找出连续最长的数字串
  6. win10 优化关键字
  7. Spring框架1--IoC
  8. SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = select list expression not produced by aggregation output (missing from GROUP BY clause?): ......
  9. JS时间处理,兼容IOS
  10. 00_k8s_learn