vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.82k stars 323 forks source link

Error when installing v3.1.20. - simple-git-hooks not recognized as a command #1480

Closed ingljoOpt closed 6 months ago

ingljoOpt commented 6 months ago

Reproduction

Minimum reproduction steps below

Steps to reproduce the bug

Start a clean folder.

npm init npm install vufire

Expected behavior

vuefire is installed in node_modules

Actual behavior

npm ERR! path C:\tmp\testvuefire\node_modules\vuefire npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c simple-git-hooks npm ERR! 'simple-git-hooks' is not recognized as an internal or external command, npm ERR! operable program or batch file.

Additional information

A workaround might be to install simple-git-hooks and save to dev-dependencies, but then it is not possible to commit without having pnpm installed too.

Got error message when committing to git: ".git/hooks/pre-commit: line 2: pnpm: command not found"

bollenn commented 6 months ago

Ran into same issue, seems linked to https://github.com/vuejs/vuefire/commit/e0410e567246cf11795a34118cdde04bbb386e7b

Smrtnyk commented 6 months ago

same here

posva commented 6 months ago

Indeed. It should be changed to prepare instead of postinstall

thesleeper commented 6 months ago

facing the same issue. was fine yesterday 2 days ago?

for the time being, v3.1.19 works ok.

chihebnabil commented 6 months ago

In my case had to update npm and Node on my server

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
source ~/.nvm/nvm.sh
nvm install --lts
nvm use --lts
npm --version
posva commented 6 months ago

Update to the latest and it should be good