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 ui fails to create locales directories

See original GitHub issue

Version

5.0.0-beta.7

Reproduction link

http://github/not-applicable

Environment info

  System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  Binaries:
    Node: 17.0.1 - /usr/local/bin/node
    Yarn: Not Found
    npm: 8.1.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 95.0.4638.54
    Edge: Not Found
    Firefox: 91.0.2
    Safari: 15.0
  npmPackages:
    @intlify/vue-devtools:  9.2.0-beta.15
    @vue/compiler-core:  3.2.20
    @vue/compiler-dom:  3.2.20
    @vue/compiler-sfc:  3.2.20
    @vue/compiler-ssr:  3.2.20
    @vue/devtools-api:  6.0.0-beta.19
    @vue/reactivity:  3.2.20
    @vue/ref-transform:  3.2.20
    @vue/runtime-core:  3.2.20
    @vue/runtime-dom:  3.2.20
    @vue/server-renderer:  3.2.20
    @vue/shared:  3.2.20
    vue:  3.2.20
    vue-i18n: ^9.2.0-beta.15 => 9.2.0-beta.15
  npmGlobalPackages:
    @vue/cli: 4.5.14

Steps to reproduce

Whenever I start vue ui, it immediately fails with:

errno: -2, syscall: ‘scandir’, code: ‘ENOENT’, path: ‘/Users/username/www/vue/Real-World_Vue-3/node_modules/@vue/cli-service/locales’

What is expected?

Vue ui to spin up

What is actually happening?

Vue ui fails with “Disconnected from UI server”


It is possible to fix the issue, by manually creating all the missing directories.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:14
  • Comments:12

github_iconTop GitHub Comments

1reaction
Patavixcommented, Mar 8, 2022

Thx for help. This issue exists for more than 5 months and it really bothers me

1reaction
suristercommented, Jan 30, 2022

In my case, running it as sudo did not fix it. It was only fixed by creating the locales manually which can be cumbersome, I created a simple Python script to do this.

You can find it here:

https://gist.github.com/surister/99036b618a6231ecdc2cb55845dea072

run it like:

$ sudo python fix_6784.py /home/project/node_modules/@vue/

Notes:

sudo is needed so Python can create the folders. NEVER run a script that you found online as sudo if you do not understand it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue ui fails with missing @vue/cli-service/locales - Vue Forum
Error: ENOENT: no such file or directory, scandir '/Users/howard/Projects/bkrailway/node_modules/@vue/cli-service/locales' at Object.
Read more >
How to fix error " No such file or directory error" with vue-cli ...
I tried creating a vue app with vue create but I get a no such file error. ~$ vue create hello-world bash: /usr/local/bin/vue:...
Read more >
The Ultimate Vue Localization Guide | Phrase
Let's construct the Vue I18n instance in a new module. We'll create a directory called src/i18n and place an index.js file within. src/i18n/ ......
Read more >
How to Load i18n Locales Asynchronously in Vue 3 + Vite
To keep things more organized we will put everything related to the Vue I18n plugin in a separate file. Therefore, create a i18n.js...
Read more >
How To Generate a Vue.js Single Page App With the Vue CLI
Since it is a security best practice to avoid using sudo with npm install , you can instead resolve this by changing npm's...
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