-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Vite could not find @vueuse/shared if slidev/cli is install globally #410
Comments
I have this error too. And I have tried install it globally in Windows, WSL and Ubuntu , all failed.
|
By the way, I did not have this error when install globally with yarn on archlinux. |
Thank you for your idea, I just tested install slidev with yarn on WSL(Ubuntu) and now it works well. |
I think it's because of the different hoisting strategies that your package manager is using. I can see the workaround to be as you mentioned, install the packages explictly or use local install to be more stable. |
same problem on mac os 12.0.1 and Apple M1. |
Use @aeudes method works well. Thanks. npm install -g @vueuse/shared@6.8.0 vue@3.2.21 |
thank you, |
This seems to be fixed. |
Yes indeed! I confirm no install problem anymore with @slidev/cli@0.31.4. |
Describe the bug
When slidev is install globally, running slidev gives the following error :
The @vueuse/shared package is install as internal dependency of @vueuse/core:
It may be a duplicate of #392 .
I find the following work around, install @vueuse/shared globally
by default npm seems to install the vue2 version of demi, so I have to add vue3 to force correct dependency... There is maybe an other way (npm/node.js newbie here...).
To Reproduce
Steps to reproduce the behavior:
npm install -g @slidev/client katex (see When install @slidev/cli globally, we are forced to globally install @slidev/client and katex #409)Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: