nodejs安装 v16.20.0
cd yudao-ui-admin-vue2
node install -g yarn
yarn install
npm run local
改配置不然node install -g yarn报错
前往-前往文件夹-/Library
创建 /nodejs/node_global /nodejs/node_cache
npm config set prefix '/Library/nodejs/node_global'
npm config set cache '/Library/nodejs/node_cache'
npm get prefix
npm get cache
npm get registry
vi ~/.bash_profile加系统配置不然yarn install报错
YARN_HOME=/Library/nodejs/node_global/lib/node_modules/yarn
export PATH=$PATH:$MAVEN_HOME/bin:$MYSQL_HOME/bin:$YARN_HOME/bin