-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Warning: package-name is trying to unpack in the same destination #747
Comments
@kaisalmen On further debugging this issue, I found out that [email protected] has monaco-editor@~7.0.7 and vscode@~7.0.7 as a direct dependency with can we do something to prevent this issue? Is it ok to get that warning? |
@shivam6543 this is done intentionally |
@kaisalmen Yes, I’ve yarn.lock file at the root of my project and I also tried running this command And got this output:
From the output, it doesn’t seem like it upgraded the monaco-editor and vscode package version. When I ran the above upgrade command, I got the same warning and after the command completion, it didn’t show any changes in the yarn.lock. Am I missing something? |
@shivam6543 is what |
@kaisalmen here is the output of the yarn list. From the output, it seems like mlc is installing the 7.0.7 but I’ve monaco-editor and vscode as a direct dependency because of that it’s trying to install 7.0.11. Any idea how to install only one version for all the packages?
|
@shivam6543 is possible that yarn |
@kaisalmen In my case, it’s not possible to use npm or pnpm. Please let us know if you find any solution or workaround for this issue. |
@shivam6543 don't know why I though about it earlier, but you can use yarn resolutions to enforce a specific version to circumvent such problems: https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/ |
Hello Team,
In my project, I’m using the following dependencies:
but when I run yarn install it shows this warning in the terminal:
I’m only installing v7.0.7 but some other package is also trying to install v7.0.11. I’m using yarn package manager to install dependencies.
I tried removing ~ from the packages versions but
still somehow it installs two versions. I also tried to run yarn cache clean —all before running yarn install.
Can you please help me how can I install only one version of the dependencies in my project. Thanks!
The text was updated successfully, but these errors were encountered: