npm cache nodejs code example Example 1: nodejs clean cache npm cache clean --force Example 2: nodejs cache data npm install node-cache --save