vue-cli
vue-cli copied to clipboard
Vue ui fails to create locales directories
Version
5.0.0-beta.7
Reproduction link
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.
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
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)
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.
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!
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.
Same here. MacOS 12.0.1, VueCLI 4.5.15, NodeJS 17.0.1. And yes - manually creating folders fixes this issue.
me 2 , manually creating folders fixes this issue. (for every cli plugins)
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
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!
running vue ui as sudo user fixed this problem for me
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.
Thx for help. This issue exists for more than 5 months and it really bothers me
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!
In my case i use 2 node versions with 'nvm' : node 16. and node 20. Switching to 16. solved the problem