0

Npm ERR! Please run npm cache clean

I'm trying to install IPFS from here npm install ipfs --save and it is giving me the error as

npm ERR! tar.unpack error reading /media/FLASH/Tech/IPFS/ipfs

npm ERR! Linux 4.15.0-29-generic

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ipfs" "--save"

npm ERR! Please run npm cache clean
npm Cache Add a comment
robert
asked Oct 01 2021

Answer

0

The npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, then use

npm cache verify

if you're debugging an issue with the installer, you can use

install --cache /tmp/empty-cache

If you're sure you want to delete the entire cache, rerun:

npm cache clean --force

Add a comment
linuxhelp
asked Oct 01 2021
edited Oct 01 2021
Post your Answer