fix bug where package.json is not copied before running npm