Skip to content
interoptech edited this page Jul 27, 2019 · 2 revisions

Quasar Build Provisions (start=>https://quasar.dev/quasar-cli/installation)

==================================== Quasar CLI Installation ====================================

**Make sure you have Node >=8 and NPM >=5 installed on your machine.

Uninstall quasar-cli if you have it from <1.0 versions

$ npm uninstall -g quasar-cli

Node.js >= 8.9.0 is required.

$ npm install -g @quasar/cli

TIPS -The v1.0+ CLI is compatible with pre v1.0 project folders too, so you DON’T need to worry that your older projects won’t run anymore. -You are not required to have vue cli installed anymore in order to generate a Quasar project folder.

Then we create a project folder with Quasar CLI:

for Quasar v1:

$ quasar create <folder_name>

for v0.17, run this instead:

$ quasar create <folder_name> -b v0.17

NOTE You don’t need separate projects if you want to build any of the options described above. This one project can seamlessly handle all of them.

How it works Quasar CLI is made up of two packages: @quasar/cli and @quasar/app. The first one is optional and only allows you to create a project folder and globally run Quasar commands. The second package is the heart of it and it gets installed into every Quasar project folder.

Once a project folder has been generated, Quasar CLI will only help in running @quasar/app's commands globally. You don’t need it for anything else at this point. To ensure full independence from Quasar CLI you can write npm scripts (in your package.json) to run Quasar commands. It is @quasar/app (which is specific to each project) that will run all the CLI commands.

Example of adding a few npm scripts into your package.json: // package.json "scripts": { "dev": "quasar dev", "build": "quasar build", "build:pwa": "quasar build -m pwa" } The above will allow you to run $ yarn dev or $yarn build without the need of a globally installed @quasar/cli, should you wish to do so.

Alternatively You can even use npx to run quasar commands without the need of a globally installed @quasar/cli. $ npx quasar dev

Check Em $ quasar info Operating System Windows_NT(10.0.17134) - win32/x64 NodeJs 12.4.0 Global packages NPM 6.9.0 yarn 1.16.0 @quasar/cli 1.0.0 cordova Not installed Networking Host LAPTOP-7NQ1ILK7 VirtualBox Host-Only Network 192.168.56.1 Wi-Fi 192.168.0.37

================================================================================================= ==================================== Quasar CLI Installation ====================================

Clone this wiki locally