require npm packages in files that use them