This is probably not a problem with npm. There is likely additional logging output above. re code example
Example 1: This is probably not a problem with npm. There is likely additional logging output above lite server
npm cache clean --force
Example 2: This is probably not a problem with npm. There is likely additional logging output above.
npm run build -prod