mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-01 04:19:15 -06:00
Fix win install message (#6253)
* try: fix add-install-comment on win * build on this branch * Revert "build on this branch" This reverts commit228f74e581. * add instructions for windows shells * build on this branch * fix indentation * Revert "build on this branch" This reverts commitcd955db8d0.
This commit is contained in:
@@ -13,7 +13,7 @@ const {
|
||||
getCIBuildUrl,
|
||||
} = require('./utils')
|
||||
const { addCommitComment } = require('@cypress/github-commit-status-check')
|
||||
const { stripIndent } = require('common-tags')
|
||||
const { html, stripIndent } = require('common-tags')
|
||||
|
||||
/* eslint-disable no-console */
|
||||
|
||||
@@ -62,11 +62,32 @@ const getLinuxInstallMessage = () => {
|
||||
}
|
||||
|
||||
const getWindowsInstallMessage = () => {
|
||||
return stripIndent`
|
||||
return html`
|
||||
${preamble}
|
||||
|
||||
set CYPRESS_INSTALL_BINARY=${binary}
|
||||
npm install ${binary}
|
||||
Instructions are included below, depending on the shell you are using.
|
||||
|
||||
#### In Command Prompt (\`cmd.exe\`):
|
||||
|
||||
set CYPRESS_INSTALL_BINARY=${binary}
|
||||
npm install ${npm}
|
||||
|
||||
#### In PowerShell:
|
||||
|
||||
$env:CYPRESS_INSTALL_BINARY = ${binary}
|
||||
npm install ${npm}
|
||||
|
||||
#### In Git Bash:
|
||||
|
||||
export CYPRESS_INSTALL_BINARY=${binary}
|
||||
npm install ${npm}
|
||||
|
||||
#### Using \`cross-env\`:
|
||||
|
||||
If the above commands do not work for you, you can also try using \`cross-env\`:
|
||||
|
||||
npm i -g cross-env
|
||||
cross-env CYPRESS_INSTALL_BINARY=${binary} npm install ${npm}
|
||||
`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user