You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a node_modules symlink in your project, targeting the node_modules directory previously created
Run npm install twice
What is expected?
The second npm install shouldn't do anything
What is actually happening?
The second npm install modifies the package-lock.json and uninstall some dependencies required for npm run build.
I use a capistrano architecture in production for my project: I have a "shared" node_modules directory, and for every new deployment, the node_modules directory is symlinked to this shared directory, to avoid reinstalling everything.
It works well the first time, however the second time some dependencies are missing.
I noticed that at the first npm install run, yorkie does nothing:
$ ls node_modules/@vue
cli-plugin-babel cli-plugin-eslint cli-service eslint-config-standard
This issue doesn't happen when I'm not using a symlinked node_modules directory. In that case, yorkie goes fine at the first npm install and doesn't do anything if I run npm install again.
The text was updated successfully, but these errors were encountered:
This issue only happens with vue-cli generated projects, so I guess the solution is in the vue-cli generated package.json.
Everything seems to point towards the yorkie module, however https://github.com/yyx990803/yorkie we can't create issues on this project. And since vue-cli chose to use it, I guess the issue belongs here.
Version
3.4.0
Environment info
Steps to reproduce
node_modules
directory somewhere elsenode_modules
symlink in your project, targeting the node_modules directory previously creatednpm install
twiceWhat is expected?
The second
npm install
shouldn't do anythingWhat is actually happening?
The second
npm install
modifies the package-lock.json and uninstall some dependencies required fornpm run build
.I use a capistrano architecture in production for my project: I have a "shared" node_modules directory, and for every new deployment, the node_modules directory is symlinked to this shared directory, to avoid reinstalling everything.
It works well the first time, however the second time some dependencies are missing.
I noticed that at the first
npm install
run, yorkie does nothing:However, after the second
npm install run
, this happens:Then the package-lock.json is modified automatically, and some dependencies are missing in node_modules.
For example, after the first
npm install
:And after the second
npm install
:This issue doesn't happen when I'm not using a symlinked node_modules directory. In that case, yorkie goes fine at the first
npm install
and doesn't do anything if I runnpm install
again.The text was updated successfully, but these errors were encountered: