简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM