Download nvm.
列出可安装的 node 版本:
nvm list available安装指定的版本,建议使用最新的LTS(长期服务)版本:
nvm install XX.XX.X使用指定的版本:
nvm use XX.XX.XDownload Yarn:
npm install --global yarnRun this followed commands:
# Install dependencies (only the first time)
yarn install
# Run the local server at localhost:8080
yarn dev
# Build for production in the dist/ directory
yarn build