Skip to content

azure-functions-core-tools installation fails using snap #95

@igorpupkinable

Description

@igorpupkinable

Attempting to install azure-functions-core-tools with Node 22.2.2 snap fails with the following error:

info run azure-functions-core-tools@4.9.0 postinstall { code: 1, signal: null }
3759 verbose stack Error: command failed
3759 verbose stack     at promiseSpawn (/snap/node/11396/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)

Ubuntu 22 LTS
Node.js Runtime v22.22.2 snap 22/stable; snap-id: MEd4V4HHFkCXBSz6UzVmKF2D2PmWcVwR

The issue is caused by lib/install.js post-install script if invoked with npm install azure-functions-core-tools -g.
It does work if triggered manually with node ~/.npm/global/lib/node_modules/azure-functions-core-tools/lib/install.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions