in index.js [82:92]
async function installPackage (target, dest, opts) {
await isNpmInstalled();
// Ensure that `npm` installs to `dest` and not any of its ancestors
await fs.ensureDir(path.join(dest, 'node_modules'));
// Run `npm` to install requested package
const args = npmArgs(target, opts);
events.emit('verbose', `fetch: Installing ${target} to ${dest}`);
return execa('npm', args, { cwd: dest });
}