Shared node modules #7197
Unanswered
frankykubo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have my Vue 3 app installed as a dependency in other project with npm, which means everything needed to run the app is installed in root/node_modules. Vue app is located in root/node_modules/my_vue_app.
However if I want to serve the app, it wont start because of missing modules. It looks like this:
According to answer on stackoverflow: https://stackoverflow.com/a/29787493 , the app should look for missing modules in parent directories, but it crashes instead.
If I run npm i in app's folder and then start, it works normally. Any idea, how to achieve this idea? Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions