clear local npm cache code example Example 1: npm cache clean --force npm cache clean --force Example 2: nodejs clean cache npm cache clean --force