Windows CLI throws error while running the following npm scripts:
"cypress": "$(npm bin)/cypress open -e envName=dev",
"cypress:cli": "$(npm bin)/cypress run --spec 'cypress/integration/index.js' --browser chrome",
"test:integration:dev": "$(npm bin)/.bin/cypress run -e envName=dev --spec cypress/integration/index.js --headed --no-exit"
Error
'$' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-advanced-form@1.6.7 cypress: `$(npm bin)/cypress open -e envName=dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-advanced-form@1.6.7 cypress script.
What
Windows CLI throws error while running the following npm scripts:
Error
Fix
Replaced
$(npm bin)
withnode_modules/.bin