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.
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.jspost-install script if invoked withnpm 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.