'How can npm install always throwing error code 1?

Every time I use npm install it always shows this error. I have already downgraded my Node.js to the latest stable version.

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\AZ PRODUCTIONS\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\AZ PRODUCTIONS\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > [email protected] prepare
npm ERR! > rm -rf ./dist && yarn build

I can't post more because of the limitation.



Solution 1:[1]

npm clear cache --force and delete node_modules and package-lock.json try npm i --force

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Atakan ATICI