You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo'{}'> package.json
$ npx husky initNeed to install the following packages:husky@9.0.2Ok to proceed? (y) yfile:///home/julien.fontanet/.npm/_npx/0d92fdd791cc1044/node_modules/husky/bin.js:10 d.scripts.prepare = 'husky' ^TypeError: Cannot set properties of undefined (setting 'prepare') at file:///home/julien.fontanet/.npm/_npx/0d92fdd791cc1044/node_modules/husky/bin.js:10:21 at ModuleJob.run (node:internal/modules/esm/module_job:195:25) at async ModuleLoader.import (node:internal/modules/esm/loader:336:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:106:12)Node.js v18.19.0
The text was updated successfully, but these errors were encountered:
Troubleshoot
https://typicode.github.io/husky/troubleshoot.html
If you're migrating from husky 4, see:
https://typicode.github.io/husky/migrating-from-v4.html
Context
The error:
The text was updated successfully, but these errors were encountered: