Enabling pre and post hooks in pnpm .npmrc option enable-pre-post-scripts = true Command line option pnpm config set enable-pre-post-scripts true