-
-
Couldn't load subscription status.
- Fork 7k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using mise to manage Node (20.5.1) and pnpm (9.x), sharp fails to build because node-gyp is not present in the environment. This prevents postinstall scripts from completing. The issue does not occur when using NVM, because npm globally provides node-gyp.
Optional suggestion:
Consider adding node-gyp as a devDependency to ensure builds work in mise and other isolated Node environments.
Affected component/components
sharp (dependency)
How to reproduce
- Clone the repo:
git clone https://github.com/shadcn/ui.git - Navigate to repo:
cd ui - Install dependencies:
pnpm install - Run workspace:
pnpm --filter=www dev
Codesandbox/StackBlitz link
No response
Logs
sh: line 1: node-gyp: command not foundSystem Info
OS: Omarchy 3.0.2 (Arch Linux)
Node: 20.5.1 via mise
PNPM: 9.x
npm: not used globallyBefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working