Skip to content

Version 2.58.3 Includes a postinstall script that is incompatible with Deno #3028

@joeldevelops

Description

@joeldevelops

CLI Version

2.58.3

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

macOS 15.1

Link to reproduction repository

No response

CLI Command

deno install --allow-scripts --reload

Exact Reproduction Steps

  1. Setup a simple react project with Deno
  2. Install the latest version of the cli with deno add npm:@sentry/cli@2.58.3
  3. To ensure the error happens, re run the install with deno install --allow-scripts --reload

Expected Results

In sentry/cli@2.58.2 the install and any postinstall scripts run successfully. For now I've pinned to that version to solve the issue.

Actual Results

Log output from running deno install

error: script 'postinstall' in '@sentry/cli@2.58.3' failed with exit code 1
stderr:
Task not found: install-cli
Available tasks:
  No tasks found in configuration file

// ...

error: failed to run scripts for packages: @sentry/cli@2.58.3, ...

Note that the other scripts complete successfully with the older pinned version of sentry cli

Logs

Initialize bcrypt@6.0.0: running 'install' script
Download https://registry.npmjs.org/@swc%2fcore-win32-ia32-msvc
Download https://registry.npmjs.org/@swc%2fcore-linux-arm64-musl
Download https://registry.npmjs.org/@swc%2fcore-linux-arm64-gnu
Download https://registry.npmjs.org/@swc%2fcore-darwin-x64
Download https://registry.npmjs.org/@swc%2fcore-darwin-arm64
Download https://registry.npmjs.org/@swc%2fcore-win32-arm64-msvc
Download https://registry.npmjs.org/@swc%2fcore-linux-arm-gnueabihf
Download https://registry.npmjs.org/@swc%2fcore-win32-x64-msvc
Initialize @swc/core@1.15.3: running 'postinstall' script
Download https://registry.npmjs.org/@sentry%2fcli-win32-i686
Download https://registry.npmjs.org/@sentry%2fcli-linux-i686
Download https://registry.npmjs.org/@sentry%2fcli-win32-arm64
Download https://registry.npmjs.org/@sentry%2fcli-linux-arm64
Download https://registry.npmjs.org/@sentry%2fcli-darwin
Download https://registry.npmjs.org/@sentry%2fcli-linux-arm
Download https://registry.npmjs.org/@sentry%2fcli-win32-x64
Initialize @sentry/cli@2.58.3: running 'postinstall' script
error: script 'postinstall' in '@sentry/cli@2.58.3' failed with exit code 1
stderr:
Task not found: install-cli
Available tasks:
  No tasks found in configuration file

// ...

Initialize esbuild@0.25.12: running 'postinstall' script
error: script 'postinstall' in 'esbuild@0.25.12' failed with exit code 143
Initialize esbuild@0.27.1: running 'postinstall' script
error: script 'postinstall' in 'esbuild@0.27.1' failed with exit code 143
Initialize protobufjs@7.5.4: running 'postinstall' script
error: script 'postinstall' in 'protobufjs@7.5.4' failed with exit code 143
Initialize core-js@3.47.0: running 'postinstall' script
error: script 'postinstall' in 'core-js@3.47.0' failed with exit code 143
Initialize @prisma/engines@6.19.1: running 'postinstall' script
error: script 'postinstall' in '@prisma/engines@6.19.1' failed with exit code 143
Initialize prisma@6.19.1: running 'preinstall' script
error: script 'preinstall' in 'prisma@6.19.1' failed with exit code 143
Initialize @prisma/client@6.19.1: running 'postinstall' script
error: script 'postinstall' in '@prisma/client@6.19.1' failed with exit code 143
error: failed to run scripts for packages: @sentry/cli@2.58.3, esbuild@0.25.12, esbuild@0.27.1, protobufjs@7.5.4, core-js@3.47.0, @prisma/engines@6.19.1, prisma@6.19.1, @prisma/client@6.19.1

Metadata

Metadata

Assignees

Labels

BugIssue typeCLIProduct area

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions