question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown command: dev

See original GitHub issue

What happened?

1 Updated global quasar CLI via npm 2. Created new project with default settings (but added axios, i18n, and state support) 3. See https://www.loom.com/share/945748d99f8a4083afd3451dd21b45a6 for the video 4. cd quasar-project 5. quasar mode add electron 6. Got the usual “Unknown command “mode”” error

What did you expect to happen?

Electron mode should be added. App should be runnable.

One thing I noticed - i have quasar.config.js , not quasar.conf.js - has this changed recently?

Reproduction URL

N/A

How to reproduce?

1 npm i -g @quasar/cli 2. Created new project with default settings (but added axios, i18n, and state support) 3. See https://www.loom.com/share/945748d99f8a4083afd3451dd21b45a6 for the video 4. cd quasar-project 5. quasar mode add electron 6. Got the usual “Unknown command “mode”” error

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

Electron

Quasar info output

Operating System                        Windows_NT(10.0.19043) - win32/x64
NodeJs                                  16.14.0

Global packages
  NPM                                   7.14.0
  yarn                                  1.22.10
  @quasar/cli                           1.1.3
  @quasar/icongenie                     2.4.0
  cordova                               10.0.0

Networking
  Host                                  DESKTOP-VFDVA01
  VirtualBox Host-Only Network          192.168.56.1
  VirtualBox Host-Only Network #2       192.168.149.2
  VirtualBox Host-Only Network #3       169.254.251.227
  WiFi                                  192.168.0.30
  vEthernet (WSL)                       172.23.208.1

Relevant log output

PS C:\dev> yarn create quasar
yarn create v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info @expo/ngrok-bin-darwin-arm64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-darwin-arm64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-darwin-arm64@2.3.40: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-darwin-x64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-darwin-x64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-ia32@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.3.40: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-freebsd-x64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-x64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.3.40: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-arm64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm64@2.3.40: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-ia32@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-linux-ia32@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-ia32@2.3.40: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-x64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-linux-x64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-sunos-x64@2.3.40: The platform "win32" is incompatible with this module.
info "@expo/ngrok-bin-sunos-x64@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.3.40: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-win32-ia32@2.3.40" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "nativescript > marked-terminal@3.1.1" has incorrect peer dependency "marked@^0.4.0 || ^0.5.0".
[4/4] Building fresh packages...
success Installed "create-quasar@1.0.17" with binaries:
      - create-quasar


 .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

√ What would you like to build? » App with Quasar CLI, let's go!
√ Project folder: ... quasar-project
√ Pick Quasar version: » Quasar v2 (Vue 3 | latest and greatest)
√ Pick script type: » Javascript
√ Pick Quasar App CLI variant: » Quasar App CLI with Webpack (stable)
√ Package name: ... quasar-project
√ Project product name: (must start with letter if building mobile apps) ... Quasar App
√ Project description: ... A Quasar Project
√ Author: ... Andrew Peacock <blakey@gmail.com>
√ Pick your CSS preprocessor: » Sass with SCSS syntax
√ Check the features needed for your project: » ESLint, State Management (Pinia), Axios, Vue-i18n
√ Pick an ESLint preset: » Prettier

 Quasar • Generating files...

 - babel.config.js
 - quasar.config.js
 - README.md
 - .editorconfig
 - .gitignore
 - .postcssrc.js
 - jsconfig.json
 - package.json
 - public/favicon.ico
 - src/App.vue
 - src/index.template.html
 - .vscode/extensions.json
 - .vscode/settings.json
 - public/icons/favicon-128x128.png
 - public/icons/favicon-16x16.png
 - public/icons/favicon-32x32.png
 - public/icons/favicon-96x96.png
 - src/assets/quasar-logo-vertical.svg
 - src/boot/.gitkeep
 - src/components/EssentialLink.vue
 - src/layouts/MainLayout.vue
 - src/pages/ErrorNotFound.vue
 - src/pages/IndexPage.vue
 - src/router/index.js
 - src/router/routes.js
 - src/css/app.scss
 - src/css/quasar.variables.scss
 - src/boot/axios.js
 - src/boot/i18n.js
 - src/i18n/index.js
 - src/i18n/en-US/index.js
 - .eslintignore
 - .eslintrc.js
 - src/stores/example-store.js
 - src/stores/index.js
 - src/stores/store-flag.d.ts

 Quasar •  SUCCESS  • The project has been scaffolded

√ Install project dependencies? (recommended) » Yes, use yarn

yarn install v1.22.10
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @babel/eslint-parser@7.17.0" has unmet peer dependency "@babel/core@>=7.11.0".
warning " > eslint-webpack-plugin@3.1.1" has unmet peer dependency "webpack@^5.0.0".
Done in 36.28s.


yarn run v1.22.10
$ eslint --ext .js,.vue ./ --fix
Done in 2.45s.

Additional context

PS C:\dev\quasar-project> node -v v16.14.0

PS C:\dev\quasar-project> npm -v 7.14.0

PS C:\dev\quasar-project> yarn -v 1.22.10

Platform: windows 10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ap1969commented, May 6, 2022

Fixed it:

I must have had a stray yarn global @quasar/cli floating about

Ran “yarn global remove @quasar/cli” and now quasar info is showing v1.3.2, the latest one, and quasar mode add electron works.

0reactions
ap1969commented, May 6, 2022

I ran “npm uninstall -g @quasar/cli” , but “quasar serve” still runs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Unknown command "dev" · Issue #75 - GitHub
Steps to try, if you believe this should be a valid Quasar project folder: Ensure the project dependencies are installed: yarn install. If...
Read more >
Why isn't quasar "build" a known command? - Stack Overflow
I'm running quasar build in my bitbucket pipeline but the output is: Error Unknown command "build ...
Read more >
$ quasar dev not working | Quasar Framework Community
I have a problem whit quasar when I run: $ quasar dev I get the following ... System Information as displayed by the:...
Read more >
How to fix "Unknown command nvm" on Linux
Here is how you can fix "nvm: command not found" on Linux. 1. Verify that you have nvm installed. sudo find / -name...
Read more >
shell : unknown command in crosh - Google Groups
to Chromium OS dev. I'm currently experimenting an issue with shell in crosh, it gives me an 'unknown command' I've built my first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found