packages/create-slate-theme/create-slate-theme.js
function installThemeDeps(root, options) {
  if (options.skipInstall) {
    console.log('Skipping theme dependency installation...');
    return Promise.resolve();
  }

  const prevDir = process.cwd();

  console.log('Installing theme dependencies...');
  process.chdir(root);

  const cmd = utils.shouldUseYarn()
    ? utils.spawn('yarnpkg')
    : utils.spawn('npm install');

  return cmd.then(() => process.chdir(prevDir));
}
function installThemeDeps(root, options) {
  if (options.skipInstall) {
    console.log('Skipping theme dependency installation...');
    return Promise.resolve();
  }

  const prevDir = process.cwd();

  console.log('Installing theme dependencies...');
  process.chdir(root);

  const cmd = utils.shouldUseYarn()
    ? utils.spawn('yarnpkg')
    : utils.spawn('npm install');

  return cmd.then(() => process.chdir(prevDir));
}
function installThemeDeps ( root , options ) { if ( options . skipInstall ) { console . log ( 'Skipping theme dependency installation...' ) ; return Promise . resolve ( ) ; } const prevDir = process . cwd ( ) ; console . log ( 'Installing theme dependencies...' ) ; process . chdir ( root ) ; const cmd = utils . shouldUseYarn ( ) ? utils . spawn ( 'yarnpkg' ) : utils . spawn ( 'npm install' ) ; return cmd . then ( ( ) => process . chdir ( prevDir ) ) ; }
Executes `npm install` or `yarn install` in rootPath.
Executes npm install or yarn install in rootPath .