Skip to content

[BUG] running npm create mastra@1.3.14 still tries to run mastra@latest after th npm dependencies installed step #15272

@natilivni

Description

@natilivni

Describe the Bug

I can not run npm create mastra@latest due to enterprise npm feed policy. However, when I attempt to install an older version (eg. npm create mastra@1.3.14), the install script still attempts to install @latest.

Here is the err output:

Project creation failed: Failed to install Mastra CLI: Failed to install mastra@latest: Command failed: npm install --audit=false --fund=false --loglevel=error --progress=false --update-notifier=false -D mastra@latest
npm error code ETARGET
npm error notarget No matching version found for @mastra/schema-compat@1.2.7.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
npm error A complete log of this run can be found in: /Users/xxxxx/.npm/_logs/2026-04-12T06_53_03_938Z-debug-0.log

Steps To Reproduce

  1. run npm create mastra@1.3.14

Link to Minimal Reproducible Example

NA

Expected Behavior

All npm packages should be of the same version as is being installed.

Environment Information

LLM Provider: anthropic

Verification

  • I have searched the existing issues to make sure this is not a duplicate
  • I have included sufficient information for the team to reproduce and understand the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues regarding Mastra CLI commands: Build, Dev, Start etcbugSomething isn't workingeffort:mediumimpact:hightrio-wp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions