Closed awegrzyn closed 11 months ago
Same here ..
It seems a git call was added to the postinstall
"postinstall": "git config --replace-all core.hooksPath scripts/hooks"
https://github.com/sinonjs/sinon/blob/main/package.json#L62
cc: @fatso83
Depending on the project. Adding ignore-scripts=true
to .npmrc
may work for you as a workaround (note that this disables all scripts from dependencies)
Good call! I'll fix it up. That postinstall
was only supposed to affect people developing on Sinon 🙈
Verified to work. Sorry about the temporary glitch. Just try installing npm i sinon@latest
I have issue on 16.1.2 and latest too:
npm i sinon@latest
npm ERR! code 1
npm ERR! path C:\_Utilisateurs\Project\Edge-AI\EECV-3DScene\node_modules\sinon
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c ./scripts/setup-hooks
npm ERR! '.' n'est pas reconnu en tant que commande interne
npm ERR! ou externe, un programme ex�cutable ou un fichier de commandes.
16.1.3 is the latest version. Can you show me the commands used? Start with removing node_modules
npm i sinon@16.1.3 -D
# OK?
OS: CentOS Stream release 8 NodeJS: v18.9.1 npm: 8.19.1
npm install
simply fails with:No issue with sinon@16.1.0.