Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue ui fails to create locales directories #6784

Open
clubh opened this issue Oct 26, 2021 · 14 comments
Open

Vue ui fails to create locales directories #6784

clubh opened this issue Oct 26, 2021 · 14 comments

Comments

@clubh
Copy link

clubh commented Oct 26, 2021

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.

@MT-DesignersThailand
Copy link

MT-DesignersThailand commented Oct 27, 2021

I have the same exact problem, Vue ui keeps crashing, and clearly there is something wrong with the latest CLI.
I did all the steps on a fresh MacOS, installed Node then Vue CLI 4.5.14, and even when I create a project using the create command still gives me loads of vulnerabilities and Vue UI fails to import the project.

I starting to give up on Vue before even getting to work with it  😤
Thanks @clubh

@xzltc
Copy link

xzltc commented Nov 5, 2021

same problem,I try other version but the result was same,can't create project and import project (manually create "locales" folder in every error path can fix it,but this is not a long-term solution)

@himynameisubik
Copy link

I'm currently facing the same issue. Creating the folder fixes the issue, but since I'm using other cli-plugins (babel, eslint, pwa) I have to create the folder for all of them.

@bapman81
Copy link

Same issue here with Vue CLI 4.5.15. Looks like the issue is macOS related (using 11.6 here with M1 processor but it does not seem to be related to the processor).
Manually creating the folders does the trick indeed!

@crimue
Copy link

crimue commented Nov 11, 2021

I faced the same issue on the M1 Macbook Pro and a windows 10 machine. I was able to solve it by downgrading to node 16.13.0.

@hugmouse
Copy link

Same here. MacOS 12.0.1, VueCLI 4.5.15, NodeJS 17.0.1.
And yes - manually creating folders fixes this issue.

@uwings
Copy link

uwings commented Dec 5, 2021

me 2 , manually creating folders fixes this issue. (for every cli plugins)

@016
Copy link

016 commented Dec 7, 2021

me 2, fixed by manual create "locales" folder for all missing path @vue/xxxx/ someone just fix it plz
Environment Info:

System:
OS: macOS 11.6.1
CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
Binaries:
Node: 17.0.1 - /usr/local/bin/node
Yarn: Not Found
npm: 8.1.0 - /usr/local/bin/npm
Browsers:
Chrome: 96.0.4664.55
Edge: 95.0.1020.53
Firefox: Not Found
Safari: 15.1
npmGlobalPackages:
@vue/cli: 4.5.15

@sujeewasandeepa
Copy link

sujeewasandeepa commented Dec 22, 2021

Same issue!
@vue/cli: 4.5.15
Node: v17.3.0
npm: 8.3.0
Operating System : Manjaro Linux

Manually creating the directories worked for me as well!
Thanks clubh!

@amvolinec
Copy link

amvolinec commented Jan 16, 2022

running vue ui as sudo user fixed this problem for me

@surister
Copy link

surister commented 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.

@Patavix
Copy link

Patavix commented Mar 8, 2022

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

@lbboier
Copy link

lbboier commented Mar 1, 2023

i meet the same proble, i find the solution about delete the project failed to create.The failed project may lead to "Disconnected from UI server",So,delete it!

@PepiBobanov
Copy link

In my case i use 2 node versions with 'nvm' : node 16. and node 20. Switching to 16. solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests