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

Migrator unable to find package manager. #93

Open
jeremy-bardrof opened this issue Jul 11, 2024 · 0 comments
Open

Migrator unable to find package manager. #93

jeremy-bardrof opened this issue Jul 11, 2024 · 0 comments

Comments

@jeremy-bardrof
Copy link

When running npx ember-addon-migrator an error is thrown when the library is looking for the package manager.

~/editor-domain-model> npx editor-domain-model
  ✖ Analyzing the addon
    → Cannot read properties of undefined (reading 'endsWith')
    Running Migrator
    Running package manager
    Running lint:fix
Error occurred
    You may want to reset your repository and try again.
    Errors encountered during migration are likely unrecoverable by this tool.

    the addon-migrator can do this for you via

    migrate-addon reset

    aliased as both:
      ea2 reset
      ember-addon-migrator reset

-----------------------------------
Cannot read properties of undefined (reading 'endsWith')

TypeError: Cannot read properties of undefined (reading 'endsWith')
    at Module.getPackageManager

I can run the check locally from within node and it's successful.

~/editor-domain-model> node
Welcome to Node.js v20.14.0.
Type ".help" for more information.
> const { project } = await import("ember-apply");
undefined
> p1 = await project.getPackageManager();
'yarn'
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

1 participant