修改node_module中的包,却不受重新安装的影响

SKIPPED STITCHES 跳线

修改别人的源码往往有这几个方式:

mac 安装yarn_mac安装yarnmac 安装yarn_mac安装yarn


mac 安装yarn_mac安装yarn


显而易见,上面这两种方法既不优雅,也不可靠。作为程序员的我们岂能被这事儿给难住,开源社区早已给我们准备好了解决方案:patch-package [1]

通过cra开启一个项目

给 package.json文件中添加脚本命令( 非常重要,无论我们使用yarn还是npm,在整体袖子偏前sle leans to front安装结束后都会自动执行该命令,对node_modules中的包打补丁 )

我们引入组件button,并查看组件当前结构

我们去node_module中修改button源码

我们在看看页面情况(如果没有效果的话,可以重启一下服务 )

result.png

修改完并且也生效了,我们就要开始打补丁了,运行命令 yarn patch-package package-name

成功后你会看到根目录多了一个patches文件夹,里面包含了你修改的npm包的patch文件。点开可以很清楚的看到你都做了哪些修改。 文件名中的1.22.21就是依赖包的版本号,表示这个补丁只对1.22.21版本的插件生效

删除node_module并重新安装

依赖包安装完成后可以在命令行中看到补丁被应用(倒数后5行)

yarn start 重新启动,查看审查元素,依旧是a标签!

如何运行YARN中的DistributedShell程序

超短上衣 minicoat

您好,很高兴能帮助您,

本文介绍YARN自带的一个非常简单的应用程序实例—distributedshell的使用方法。它可以看做YARN编程中的“hello world”,主要功能是并行执行用户提供的shell命令或者shell脚本。

(1)运行参数介绍

DistributedShell的基本运行参数如下:

(2)运行方法

DistributedShell的运行方法如下:

在YARN安装目录下,执行以下命令:

bin/hadoop jar

share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.0.0-cdh4.1.1.jar

org.apache.hadoop.yarn.applications.distributedshell.

–jar share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.0.0-cdh4.1.1.jar

–shell_command ls

–shell_script ignore.sh

–num_containers 10

–container_memory 350

–_memory 350

–priority 10

需要注意的是,在hadoop-2.0.3-alpha(不包括该版本)和CDH 4.1.2版本(包括该版本)之前,DistributedShell存在BUG,具体如下:

1) 必须使用–shell_command参数

2) 当只有shell_command参数而没有shell_script参数时,在分布式模式下(伪分布式下可以)不能执行成功,具体说明和修复方法见: s //issues apache org/jira/browse/YARN-253

在这个实例中,ignore.sh中的内容就是“ls”

3) 内存设置一定要正确,不然会出现以下提示的错误:

Container [pid=4424,containerID=container_1359629844156_0004_01_000001] is running beyond virtual memory limits. Current usage: 90.1mb of 128.0mb physical memory used; 593.0mb of 268.8mb virtual memory used. Killing container.

【附】DistributedShell运行日志:

13/02/01 13:43:11 INFO distributedshell.: Initializing

13/02/01 13:43:11 INFO distributedshell.: Starting

13/02/01 13:43:11 INFO distributedshell.: Connecting to ResourceMar at c2-23/10.1.1.98:8032

13/02/01 13:43:12 INFO distributedshell.: Got Cluster metric from ASM, numNodeMars=3

13/02/01 13:43:12 INFO distributedshell.: Got Cluster node from ASM

13/02/01 13:43:12 INFO distributedshell.: Got node report from ASM for, nodeId=c2-23:36594, nodeAddressc2-23:8042, nodeRackName/default-rack, nodeNumContainers0, nodeHealthStatusis_node_healthy: true, health_report: “”, last_health_report_time: 1359697377337,

13/02/01 13:43:12 INFO distributedshell.: Got node report from ASM for, nodeId=c2-25:41070, nodeAddressc2-25:8042, nodeRackName/default-rack, nodeNumContainers0, nodeHealthStatusis_node_healthy: true, health_report: “”, last_health_report_time: 1359697367180,

13/02/01 13:43:12 INFO distributedshell.: Got node report from ASM for, nodeId=c2-24:48383, nodeAddressc2-24:8042, nodeRackName/default-rack, nodeNumContainers0, nodeHealthStatusis_node_healthy: true, health_report: “”, last_health_report_time: 1359699033102,

13/02/01 13:43:12 INFO distributedshell.: Queue , queueName=default, queueCurrentCapacity=0.0, queueMaxCapacity=1.0, queueApplicationCount=0, queueChildQueueCount=0

13/02/01 13:43:12 INFO distributedshell.: User ACL Info for Queue, queueName=default, userAcl=SUBMIT_APPLICATIONS

13/02/01 13:43:12 INFO distributedshell.: User ACL Info for Queue, queueName=default, userAcl=ISTER_QUEUE

13/02/01 13:43:12 INFO hadoop安装的根目录是 HADOOP_HOME=/your/path/to/hadoop-2.2.0distributedshell.: Got new application id=application_1359695803957_0003

13/02/01 13:43:12 INFO distributedshell.: Min mem capabililty of resources in this cluster 128

13/02/01 13:43:12 INFO distributedshell.: Max mem capabililty of resources in this cluster 10240

13/02/01 13:43:12 INFO distributedshell.: Setting up application submission context for ASM

13/02/01 13:43:12 INFO distributedshell.: Copy App Master jar from local file and add to local environment

13/02/01 13:43:13 INFO distributedshell.: Set the environment for the application

13/02/01 13:43:13 INFO distributedshell.: Trying to generate classpath for app from current thread’s classpath

13/02/01 13:43:13 INFO distributedshell.: Readable bytes from stream=9006

13/02/01 13:43:13 INFO distributedshell.: Setting up app command

13/02/01 13:43:13 INFO distributedshell.: Completed setting up app command ${JAVA_HOME}/bin/ja -Xmx350m org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster –container_memory 350 –num_containers 10 –priority 0 –shell_command ls 1>/AppMaster.stdout 2>/AppMaster.stderr

13/02/01 13:43:13 INFO distributedshell.: Submitting application to ASM

13/02/01 13:43:14 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=N/A, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=ACCEPTED, distributedFinalState=UNDEFINED, appTrackingUrl=c2-23:8088/proxy/application_1359695803957_0003/, appUser=rmss

13/02/01 13:43:15 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=RUNNING, distributedFinalState=UNDEFINED, appTrackingUrl=, appUser=rmss

13/02/01 13:43:16 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=RUNNING, distributedFinalState=UNDEFINED, appTrackingUrl=, appUser=rmss

13/02/01 13:43:17 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=RUNNING, distributedFinalState=UNDEFINED, appTrackingUrl=, appUser=rmss

13/02/01 13:43:18 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=RUNNING, distributedFinalState=UNDEFINED, appTrackingUrl=, appUser=rmss

13/02/01 13:43:19 INFO distributedshell.: Got application report from ASM for, appId=3, clientToken=null, appDiagnostics=, appMasterHost=, appQueue=default, appMasterRpcPort=0, appStartTime=1359697393467, yarnAppState=FINISHED, distributedFinalState=SUCCEEDED, appTrackingUrl=, appUser=rmss

13/02/01 13:43:19 INFO distributedshell.: Application has completed successfully. Breaking monitoring loop

13/02/01 13:43:19 INFO distributedshell.: Application completed successfully

你的采纳是我前进的动力,还有不懂的地方,请你继续“追问”!

如你还有别的问题,可另外向我求助;答题不易,互相理解,互相帮助!

hadoop 2.x安装需要单独安装yarn吗

4:安装依赖yarn 或 yarn install

不需要

春秋衫 spring and autumn coat

1 hadoop版本

hadoop-2.2.0,这是hadoop2.0的个稳定版,在2013年10月15日发布。

2 安装机器

这里以2台机器为例,一台,一台sler。多台sler的情况一样。

:hadoop2-m1

sler:hadoop2-s1

3 配置

则配置目录默认是:HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop

需要对$HADOOP_CONF_DIR目录下的四个配置文件进行配置:

core-site.xml

mapred-site.xml

yarn-site.xml

3.1 设置JAVA_HOME环境变量

3.2 设置core-site.xml

fs.defaultFS

hdfs://hadoop2-m1:8020

hadoop.tmp.dir

/home/tmp/hadoop2.0

3.3 设置hdfs-site.xml

dfs.replication

1

dfs.namenode.name.dir

/home/dfs/name

dfs.datanode.data.dir

/home/dfs/data

dfs.permissions

false

3.4 设置mapred-site.xml

mapreduce.framework.name

yarn

3.5 yarn-site.xml

yarn.resourcemar.address

hadoop2-m1:8032

yarn.resourcemar.scheduler.address

hadoop2-m1:8030

yarn.resourcemar.resource-tracker.address

hadoop2-m1:8031

yarn.resourcemar.admin.address

hadoop2-m1:8033

yarn.resourcemar.webapp.address

hadoop2-m1:8088

yarn.resourcemar.scheduler.class

org.apache.hadoop.yarn.server.resourcemar.scheduler.capacity.CapacityScheduler

yarn.nodemar.aux-servs

mapreduce_shuffle

yarn.nodemar.aux-servs.mapreduce.shuffle.class

org.apache.hadoop.mapred.ShuffleHandler

注意:yarn.nodemar.aux-servs的值是“mapreduce_shuffle”(在hadoop-2.1-beta中的值是“mapreduce.shuffle”)

4 启动

4.1 格式化

cd $Hadoop_HOME

bin/hdfs namenode -format

4.2 在hadoop2-m1中启动 namenode 和 resourcemar

in/hadoop-daemon.sh start namenode

in/yarn-daemon.sh start resourcemar

#停止服务的命令

in/hadoop-daemon.sh stop namenode

in/yarn-daemon.sh stop resourcemar

4.3 在hadoop2-s1中启动 datanode 和 nodemar

in/hadoop-daemon.sh start datanode

in/yarn-daemon.sh start nodemar..

#停止服务的命令

in/hadoop-daemon.sh stop datanode

in/yarn-daemon.sh stop nodemar

4.4 在hadoop2-m1中启动 proxyserver 和 historyserver

in/yarn-daemon.sh start proxyserver

in/mr-jobhistory-daemon.sh start historyserver

#停止服务的命令

in/yarn-daemon.sh stop proxyserver

in/mr-jobhistory-daemon.sh stop historyserver

5 检查和测试

5.1 检查以下两个页面是否能打开

5.2 运行以下hdfs命令

bin/hdfs dfs -mkdir /test/input1

bin/hdfs dfs -put NOTICE.txt /test/input1/

bin/hdfs dfs -put README.txt /test/input1/

bin/hdfs dfs -get /test/input1/NOTICE.txt /tmp/

bin/hdfs dfs -cat /test/input1/NOTICE.txt

5.3 运行mapreduce job

bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar grep /test/input1 /test/output1 'code'

6 实战tips

次安装hadoop2.0版本的时候,是像本文一样先做最基本的配置,让hadoop2.0能正常启动,然后再逐步加上其他的特性。

git上传忽略node_modules

1、安装yarn的命令: npm i yarn -g

2、用这个yarn引入jquery: yarn add jquery

3、发现node_modules这个目录, 在根目录新建一个.gitignore: touch .gitignore

4、在 git add . 之前就要作!

编辑 .gitignore 这个文件,里面内容只有 node_modules

vi .gitignore 作,里面输入 node_modules ,然后按 esc 后输入 :wq 退出

5、 git status - 中发现已经没有node_modules了

6、正常 git add . git commit -m 推送

7、只添加需要的 git add -f node_modules/jquery/dist/jquery.min.js

8袋盖反翘top flap appears tight、重复步骤6

后来部署有问题,再拷回目录。。。

mkdir vendor

cp node_modules/jquery/dist/jquery.min.js vendor

服装英语词汇

英式长裤 British trousers

服装英语词汇-服装品质控制(QCAPPROVED SWATCH 已批的布办

ART. NO./STYLE NO. 款号

AUTOLOCK ZIPPER 自动锁拉链

BACK STITCHES 回针/返针

BAD JOINED STITCHES 驳线不良

BROKEN HOLE 破洞

BROKEN STITCHES 断线

BROKEN YARN 断纱

BUBBLING 起泡

BUMP AT PLACKET EDGE 筒边钮门位不顺直

CENTER BACK RIDES UP 后幅起吊

CHECKS / STRIPES NOT MATCH 格仔/条子不对称

COLLAR POINTS HI / LOW 领尖高低

COLOR FADING 褪色

COLOR FASTNESS PROBLEM 褪色问题

COLOR FIBRE WOVEN IN 杂色onmouseover="tixa_adDisplay('纤维','H',this)" onmouseout=tixa_adHide(this)>纤维织入

COLOR SHADING 色

COLOR THREAD LEFT INSIDE 藏色线

COLOR TOO DULL / BRIGHT 颜色太哑/闪

COLOR YARN 色纱

COMBI PROGRAM 配色组合

CONTRAST COLOR 撞色

CREASE MARK 摺痕

CROCKING TEST 摩擦测试

CROSSED BACK VENT 背叉搅

CUFF EDGE NOT LEVELED 鸡英边高低

DIRTY DOT (较小的)污点

DIRTY MARK 污渍

DIRTY SPOT (较大的)污点

DROP TEST 跌落测试

DRY RUB 干西装长裤 trousers擦

EXCESS EXTENSION 突咀

FABRIC DEFECT 布疵

FABRIC TOO CLOSED TO ZIPPER 面布车得太贴近拉链

FLAP STRICKING UP 袋盖反翘

FLUO.=FLUORESCENCE 荧光

FLYING UP 飞起,翘起

FTY.STICKER 工厂的贴纸

GAPPING 藏木虱(烫工)

GLAZE MARK (熨烫)起镜

HEM NOT LEVELED 高低脚

HI / LOW POCKET 高低袋

HIKING AT BOTTOM OF PLACKET 前筒吊脚

HIKING UP 起吊

HORIZONTAL SEAM NOT LEVELED 水平缝骨不对称

INNER CUFF VISIBLE 介英反光

IRON MARK 烫痕

KNOT 结头

LASTEST SIZE SPECIFICATION 的尺寸表

LINING TOO FULL / TIGHT 里布太多/太紧

MAJOR DEFECT 大疵

MATCH COLOR 配色

MATERIAL DEFECT 物料疵点

MINOR DEFECT 小疵

MIXED COLOR YARN 色纱

NECK DROP PUCKER 筒顶起皱

NEEDLE DAMAGE 针损坏布料

NEEDLE HOLE 针孔

OFF GRAIN 布纹歪

OIL STAIN 油渍

OPEN SEAM 爆口

OVERLAPPED COLLAR 叠领,踏领

OVERLAPPED LIPS 叠唇

OVERPRESS 熨烫过度

OVERWASH 洗水过度

PLACKET BOTTOM SPREAD OPEN 筒脚张开

PLACKET WAVY 前筒起蛇(皱)

PLEATED SEWING 打褶

POCKET OPENING SPRAY OPEN 口袋“笑口”

POOR BACK-STITCHES 回针不佳

POOR IRONING 烫工不良

PRESSING MARK 压痕

PREVIOUS SHIPMENT 以前走的货

PRODUCTION STATUS 生产情况

PUCKER 起皱

QC STICKER QC贴纸,“鸡纸”

RAW EDGE 散口

RUN OFF STITCHES (车缝)落坑

PRINTING SCRIMP 印花裂痕

SEAM OVERTURN 止口反骨

SEWN IN WASTE 车缝时混有杂物

SHADING GARMENT TO GARMENT 衫与衫之间色

SHADING WITHIN 1PCS GARMENT 衣服裁片色

SHIPMENT UNDER CONSIGNMENT 寄卖

SHORT SHIPMENT 短装

SLANTING POCKET 歪袋

SLUB 毛粒

SMILING POCHET 袋“笑口”

STICKER 贴纸

STITCHES NOT IN SEAM SHADOW 缝线没被盖住

STRIPES/CHECKS NOT MATCHING 不对条/格

SUB-CONTRACTOR 外发厂

SUBSTITUTE FABRIC 代用布

SUPPORT SITCHES VISIBLE 辅助线外露

FABRIC SWATCH 布办

TENSION 张力

THICK YARN 粗纱

TOPPEST PLACKET PUCKER 筒顶起皱

TOTAL DIFFERENT COLOR 颜色完全不同

TRAPPED COLOR THREAD 藏色线

TWIST 扭

TWIST LEG 扭髀

UNCUT THREAD ENDS 线头

UNDER STITCHES VISIBLE 底线露出

UNDERPLY TURN OUT 反光

UNDERPLY VISIBLE OUTSIDE 反光

UNDERPRESS 熨烫不够

UNDESIREABLE ODOR 臭味,不可接受的气味

UNEVEN COLLAR 歪领

UNEVEN COLOR 深浅色

UNEVEN LENGTH OF PLACKET 长短筒

UNEVEN LENGTH OF SLEEVE 长短袖

UNEVEN LIPS 大小唇

UNEVEN STITCHING DENSITY 针步密度不均匀

UNMATCHED CROTCH CROSS 下裆十字骨错位

UNMEET BACK VENT 背叉豁

WET RUB 湿擦

WRONG COMBO 颜色组合错误

WRONG PATTERN 图案错误

WRONG SIZE INDICATED 错码

YARN DRAWN OUT 抽纱

ZIPPER NOT MOVABLE 拉链不能拉

成品检验Checking of finished products

检验,检查inspection, check

商检commodity inspection

领面松wrinkles at top collar

领面紧top collar appears tight

领面起泡crumples at top collar

领外口松collar edge appears loose

领外口紧collar edge appears tight

底领伸出collar band is longer than collar

底领缩进collar band is shorter than collar

底领里起皱wrinkles at collar band facing

底领外露collar band lean out of collar

倘领偏斜collar deviates from front center line

领窝不平creases below neckline

后领窝起涌bunches below back neckline

驳头起皱wrinkles at top lapel

驳头反翘top lapel appears tight

驳头外口松lapel edge appears loose

驳头外口紧lapel edge appears tight

驳口不直lapel roll line is unn

串口不直gorge line is unn

领卡脖tight neckline

领离脖collar stand away from neck

小肩起皱puckers at shoulders

塌肩wrinkles at shoulder

袖隆起皱creases at underarm

袖隆缝起皱puckers at underarm seam

塌胸lack of fullness at chest

省尖起泡crumples at dart point

拉链起皱wrinkles at zip fly

止口不直front edge is unn

止口缩角front edge is out of square

止口反翘front edge is upturned

止口反吐facing leans out of front edge

止口豁split at front edge

止口下部搭叠过多crossing at front edge

底边起皱wrinkles at hem

后身起吊back of coat rides up

背衩豁开split at back vent

背衩搭叠过多crossing at back vent

绗棉起皱puckers at quilting

絮棉不均padded cotton is unn

边缘缺棉empty hem

绱袖不圆顺diagonal wrinkles at sle cap

袖子偏后sle leans to back

前袖缝外翻inseam leans to front

袖口起皱wrinkles at sle opening

袖里拧diagonal wrinkles at sle lining

袋盖反吐flap lining leans out of edge

袋盖不直flap edge is unn

袋口角起皱creases on two ends of pocket mouth

袋口裂split at pocket mouth

腰头探出end of waistband is unn

腰缝起皱wrinkles at waistband facing

里襟里起皱creases at right fly

夹裆tight crotch

短裆short seat

后裆onmouseover="tixa_adDisplay('下垂','O',this)" onmouseout=tixa_adHide(this)>下垂slack seat

前浪不平wrinkles at front rise

裆缝断线bursting of crotch seam

裤脚前后two legs are unn

脚口不齐leg opening is unn

吊脚pulling at outseam or inseam

烫迹线外撇crease line leans to outside

烫迹线内撇crease line leans to inside

腰缝下口涌bunches below waistline seam

裙裥豁开 split at lower part of skirt

裙身吊split hem line rides up

裙浪不匀skirt flare is unn

线路偏移stitch seam leans out line

双轨接线 stitch seam is unn

跳针 skipping

尺码不符 off size

onmouseover="tixa_adDisplay('缝制','H',this)" onmouseout=tixa_adHide(this)>缝制不良stitching quality is not good

熨烫不良pressing quality is not good

极光iron-shine

水渍water stain

锈迹rust

污渍spot

色color shade, off shade, color deviation

褪色fading, fugitive color

线头thread residue

毛头raw edge leans out of seam

绣花不良embroidery design out line is uncovered

西装 Western-style. clothes/tailored suit/suit

男装 men's wear; men's suit

男童装 boy's clothes

西装上衣 upper garment; jacket/top coat/blouse/blouson

中西式上衣Chinese and western style. blouse

中山装上衣 Zhongshan coat/Chinese style. jacket/Sun-Yat-Sen style. jacket

男式短上衣 mannish jacket

男便装上衣 sack coat

男紧身上衣 doublet

短西装上衣 minisuit

轻便型上衣/运动上衣 sports coat

运动短上衣 stadium jumper

双排扣短上衣 spencer croise (法)

V领套头上衣 pull en V (法)

风帽上衣 hood jacket; anorak

套头宽上衣 pull blouson

宽大短上衣talma

紧身短上衣 tunic/coatee

罩衫 ock/blouse

茄克衫 jacket/blouson

衬衫 shirt/blouse

男衬衫 shirt/chemise(法)

男用外衬衫 liquette(法)

美式男用衬衫 chemise American (法)

休闲衬衫 leisure shirt

牛仔衬衫 cowboy shirt

套头衬衫 pullover shirt

背心/马甲 vest/waistcoat

礼服背心 dress/ning vest

西服背心 waistcoat/vest/weskit

户外背心 outer vest

运动背心 sport/gym vest

牛仔背心 cowboy vest

单襟背心 single-breasted vest

两扣背心 two-button waistcoat

紧身背心 doublet/weskit

长裤 trousers/pants/slacks/pegs/pantalon(法)bags(英口语)

高尔夫长裤 golf jupon

礼服裤 dress slacks//court breeches

礼服条纹裤 striped trousers

直筒裤 straight trousers; stem-pipe pants; cigarette pants; straight-leg slacks

牛仔裤 jeans

西装短裤 shorts

沙滩短裤 beach shorts

运动短裤 trunks; sports shorts; gym shorts

拳击短裤 boxer shorts/trunks

冲浪短裤 jams; surfer’s shorts

散步短裤 walking shorts

宽松短裤 baggys

男套装 men’s suit;tailleur masculin(法)

男式长服 lounge/business suit

西装式套装 tailored suit

正统男西装 classic suit

普通西装 lounge/sack suit

古典西装 classic model suit

意大利欧式西装 Italian continental suit

英式西装 British-style. suit

日常套装 afternoon suit

简便套装 easy/casual/leisure suit; leisure suit;

运动套装 sweat/jogging suit; gym outfit

登山服 mountaineering suit

滑雪服 ski suit

户外活动套装 blazer suit

男海滩装 cabana set

燕尾服 swallow-tailed coat; swallowtail; ning dress

pants/underpants; under drawers

briefs; short pants; undershorts

关于服装贸易的针法术语

给项目@alifd/next(ui库)、patch-package、tinstall-tinstall(使用yarn安装时需要安装,npm无需安装此依赖)

topstitch--明线,即在服装外面即可以看见的线迹,visible stitch洗水不良washing quality is not gooding.

edgestitch:切边线,即在距服装某一缝处(如侧缝,公主缝)压多少公分的线。

vue npm切换到yarn

export JAVA_HOME=/your/path/to/jdkdir

1:先根据环境安装yarn

2:删除项目node_modules和package.lock.js文件

3:项目文件下运行:np验货用语资料m install -g yarn

安装umi后,使用umi提示不是内部或者外部命令

礼服衬衫 dress shirt

umi使用yarn安装,安装umi后,使用umi提示不是内部或者外部命令。('umi' is not recognized as an internal or external command,operable program or batch file.)

根源在于yarn的 global bhdfs-site.xmlin 目录不在 path 环境变量的中,解决办法: