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/[email protected]
  3. To ensure the error happens, re run the install with deno install --allow-scripts --reload

Expected Results

In sentry/[email protected] 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/[email protected]' 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/[email protected], ...

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

Logs

Initialize [email protected]: 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/[email protected]: 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/[email protected]: running 'postinstall' script
error: script 'postinstall' in '@sentry/[email protected]' failed with exit code 1
stderr:
Task not found: install-cli
Available tasks:
  No tasks found in configuration file

// ...

Initialize [email protected]: running 'postinstall' script
error: script 'postinstall' in '[email protected]' failed with exit code 143
Initialize [email protected]: running 'postinstall' script
error: script 'postinstall' in '[email protected]' failed with exit code 143
Initialize [email protected]: running 'postinstall' script
error: script 'postinstall' in '[email protected]' failed with exit code 143
Initialize [email protected]: running 'postinstall' script
error: script 'postinstall' in '[email protected]' failed with exit code 143
Initialize @prisma/[email protected]: running 'postinstall' script
error: script 'postinstall' in '@prisma/[email protected]' failed with exit code 143
Initialize [email protected]: running 'preinstall' script
error: script 'preinstall' in '[email protected]' failed with exit code 143
Initialize @prisma/[email protected]: running 'postinstall' script
error: script 'postinstall' in '@prisma/[email protected]' failed with exit code 143
error: failed to run scripts for packages: @sentry/[email protected], [email protected], [email protected], [email protected], [email protected], @prisma/[email protected], [email protected], @prisma/[email protected]

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