编辑
2023-02-08
undefined
0

目录

下载nodejs 12.22.1
安装yarn
生成quasar
下载nodejs 12.22.1

​ 解压后,添加临时环境变量 语法export PATH=路径:$PATH

export PATH=/home/momen/node-v12.22.1-linux-x64/bin:$PATH

export PATH=/home/momen/node-v14.19.0-linux-x64/bin:$PATH

请使用绝对路径

检查node -v 是否可用

安装yarn

yarn global add @quasar/cli

bash
.... .d88888b. d88P" "Y88b 888 888 888 888 888 888 8888b. .d8888b 8888b. 888d888 888 888 888 888 "88b 88K "88b 888P" 888 Y8b 888 888 888 .d888888 "Y8888b. .d888888 888 Y88b.Y8b88P Y88b 888 888 888 X88 888 888 888 "Y888888" "Y88888 "Y888888 88888P' "Y888888 888 Y8b Quasar • ⚠ Error. This command must NOT be executed inside of a Quasar project folder. error Command failed. Exit code: 1 Command: /home/momen/.yarn/bin/create-quasar Arguments: Directory: /home/momen/Desktop/web-new/website Output: info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

重点:Command为quasar路径,加在临时环境变量中

export PATH=/home/momen/.yarn/bin:$PATH

生成quasar

进入网页根目录 quasar build

本文作者:墨洺的文档

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!