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.

'vue)'' is not recognized as an internal or external command

See original GitHub issue

System

  • vuecli 4.1.2
  • yarn 1.21.1
  • OS Windows 10

Steps to reproduce

  1. vue create -d -n repro

  2. cd repro

  3. vue add i18n

  4. Setup with

    • locale: en,
    • fallback: en,
    • localization directory: locales,
    • enable locale on single file component: yes
  5. yarn run i18n:report

Expected behavior

Scan files and report missing / unused localization

Actual Behavior

$ vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'
'vue)'' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
stritticommented, Mar 5, 2020

Having the same problem. An Attempt to replace the single quotes with escaped double quotes did also not work

Yes, that is the trick: "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/locales/**/*.json\""

1reaction
caugnercommented, May 4, 2020

I solved this issue on Windows 10 as follows:

  1. Replace the single quotes by escaped double quotes.
  2. Replace *.?(js|vue) by *.{js,vue} (i.e. curly-braces without leading question-mark).
# package.json
-    "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'"
+    "i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.{js,vue}\" --locales \"./src/locales/**/*.json\""

PS: It looks like (1) is sufficient, see this comment in #49.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'vue' is not recognized as an internal or external command
'vue' is not recognized as an internal or external command · 2. try uninstalling it and try npm install -g @vue/cli again, this...
Read more >
'vue' is not recognized as an internal or external command on ...
I had the same issue. Here the quick fix. ... at least for me it's there. To use vue as command in cmd....
Read more >
Vue-cli service is not recognized as an internal/external ...
Have a look at the /node_modules/.bin folder. You should find a file called vue-cli-service there, which is the executable to run. Does that ......
Read more >
'vue' is not recognized as an internal or external command ...
'vue' is not recognized as an internal or external command, operable program or batch file. ... Then an error pops up: 'vue' is...
Read more >
How to Solve vue Command not found on Windows - Technig
How to Solve Vue command not found ... In order to solve this problem, you should add the Vue path to your environment...
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