Closed
Description
Describe the bug
Latest version of netlify-cli
fails on postinstall with pnpm fetch
$ pnpm fetch
...
.../node_modules/netlify-cli postinstall$ node ./scripts/postinstall.mjs
│ node:internal/modules/cjs/loader:1077
│ const err = new Error(message);
│ ^
│ Error: Cannot find module '@opentelemetry/core'
...
Steps to reproduce
Repro: https://github.com/Leksat/netlify-cli-pnpm-fetch
Actions: https://github.com/Leksat/netlify-cli-pnpm-fetch/blob/main/.github/workflows/test.yml
Result: https://github.com/Leksat/netlify-cli-pnpm-fetch/actions/runs/5781917546/job/15667786482
Configuration
No response
Environment
Local env:
System:
OS: macOS 13.5
CPU: (12) arm64 Apple M2 Pro
Memory: 128.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.19 - ~/Library/pnpm/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
pnpm: 8.6.12 - ~/.nvm/versions/node/v18.17.0/bin/pnpm
But the issue happens on Linux as well.