I
I
Ivan2021-05-03 17:23:03
Vue.js
Ivan, 2021-05-03 17:23:03

Why aren't Vue cli plugins installed?

I tried to install the router plugin via yarn

yarn add router
and via npm
npm install vue-router

Gives an error message:
error An unexpected error occurred: "EPERM: operation not permitted, symlink '../../../parser/bin/babel-parser.js' -> '/vue-app/vueapp/node_modules/@babel/core /node_modules/.bin/parser'".
ERROR command failed: yarn add @vue/[email protected]~4.5.0 -D
in both cases

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2021-05-04
@Paveldjdhhd

yarn add router --no-bin-links

V
vihtort, 2021-05-04
@vihtort

I see the same error, but I have a backend project, without any client libraries.

error An unexpected error occurred: "EPERM: operation not permitted, symlink '../../../parser/bin/babel-parser.js' -> '/path/to/project/node_modules/@babel/core/node_modules/.bin/parser'".

If you, like me, placed the project files inside the virtual machine in a folder shared between the axes, then you should know that vbox prohibits creating symlinks in such folders. This can be fixed by executing in the host
before the virtual machine needs to be turned off
VBoxManage setextradata "VM name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<sharename> 1

https://www.virtualbox.org/ticket/18572?cversion=0...
https://www.speich.net/articles/en/2018/12/24/virt...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question