Skip to content
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

Error during migration from npm to Yarn - Invariant Violation #9025

Open
Sulaiman2018 opened this issue Jan 12, 2024 · 1 comment
Open

Error during migration from npm to Yarn - Invariant Violation #9025

Sulaiman2018 opened this issue Jan 12, 2024 · 1 comment

Comments

@Sulaiman2018
Copy link

I am currently in the process of migrating from npm to Yarn in my project. However, I have encountered an error during the migration process. The error message is as follows:

error Invariant Violation: expected hoisted manifest for "ngx-translate-multi-http-loader#@angular/common#@angular/core"
at invariant (/home/user/.nvm/versions/node/v20.9.0/lib/node_modules/yarn/lib/cli.js:2318:15)
at _loop2 (/home/user/.nvm/versions/node/v20.9.0/lib/node_modules/yarn/lib/cli.js:91013:9)
at PackageHoister.init (/home/user/.nvm/versions/node/v20.9.0/lib/node_modules/yarn/lib/cli.js:91083:19)
at PackageLinker.getFlatHoistedTree (/home/user/.nvm/versions/node/v20.9.0/lib/node_modules/yarn/lib/cli.js:48552:20)

The error occurs during the migration process, specifically when running yarn install. I have followed the steps recommended for migration, including removing node_modules and package-lock.json before running yarn install.

Dependencies:
"@angular/common": "^14.2.0",
"@angular/core": "^14.2.0",
"ngx-translate-multi-http-loader": "^8.0.2",

Node.js Version: v20.9.0
Yarn Version: 1.22.21

@Daniel15
Copy link
Member

Not sure about this error, but if you're migrating to Yarn, you should really migrate to the latest version, not to v1 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants