This is probably not a problem with npm. There is likely additional logging output above. custom script code example
Example: This is probably not a problem with npm. There is likely additional logging output above lite server
npm cache clean --force