Skip to content

Instantly share code, notes, and snippets.

@gmcdev
Created August 1, 2018 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmcdev/6c795094325245bc93827c77db0e8453 to your computer and use it in GitHub Desktop.
Save gmcdev/6c795094325245bc93827c77db0e8453 to your computer and use it in GitHub Desktop.
let cmd = ''
// windows
if (process.platform === 'win32') {
cmd += `cd "${global.servePath}" && npm install `
}
// mac & other platforms
else {
cmd = `cd ${unixPathLiteral(global.servePath)} && npm install `
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment