yarn config set registry https://registry.npm.taobao.org -g yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
贰、踩坑时刻
1.yarn使用时候报错信息:
script
1 2
Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
2.检测yarn版本 yarn version
script
1 2 3 4 5 6 7
D:\Seven\ways\hadoop-2.7.3>yarn version ok Hadoop 2.7.3 Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r b3fe56402d908019d99af1f1f4fc65cb1d1436a2 Compiled by jdu on 2017-12-05T03:43Z Compiled with protoc 2.5.0 From source with checksum 9ff4856d824e983fa510d3f843e3f19d This command was run using /D:/Seven/ways/hadoop-2.7.3/share/hadoop/common/hadoop-common-2.7.3.jar
3.检测yarn版本 yarn –version 报错
script
1 2 3 4
D:\Seven\ways\hadoop-2.7.3>yarn --version Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.