vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

Vue ui fails to create locales directories

Open clubh opened this issue 3 years ago • 14 comments

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.

clubh avatar Oct 26 '21 20:10 clubh

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

MT-DesignersThailand avatar Oct 27 '21 02:10 MT-DesignersThailand

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)

xzltc avatar Nov 05 '21 09:11 xzltc

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.

himynameisubik avatar Nov 05 '21 10:11 himynameisubik

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!

bapman81 avatar Nov 10 '21 13:11 bapman81

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.

crimue avatar Nov 11 '21 08:11 crimue

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

hugmouse avatar Nov 20 '21 08:11 hugmouse

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

uwings avatar Dec 05 '21 07:12 uwings

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

016 avatar Dec 07 '21 06:12 016

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!

sujeewasandeepa avatar Dec 22 '21 10:12 sujeewasandeepa

running vue ui as sudo user fixed this problem for me

amvolinec avatar Jan 16 '22 09:01 amvolinec

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.

surister avatar Jan 30 '22 15:01 surister

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

Patavix avatar Mar 08 '22 14:03 Patavix

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!

lbboier avatar Mar 01 '23 16:03 lbboier

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

PepiBobanov avatar Sep 04 '24 14:09 PepiBobanov