Search code examples
javascriptnode.jsmeteornpmmeteorite

In MeteorJS, are files in node_modules cached?


When using a npm package with Meteor v0.6.6.3, making edits to the npm package's code found at node_modules/npmPackage/something.js does not seem to have any effect!

Are the npm packages somehow cached? If so, how can we clear it?


Solution

  • Geoff Schmidt from meteor core team wrote one day:

    Packages will automatically rebuild themselves when any of their source files change (tracked by SHA1.) However, if you are hacking on the package system itself, you might have a reason to want to force a rebuild of all packages.

    You can do this with the undocumented command 'meteor rebuild-all'.

    Source