kettanaito / react-advanced-form

Functional reactive forms. Multi-layer validation, custom styling, field grouping, reactive props, and much more.
https://redd.gitbook.io/react-advanced-form
MIT License
217 stars 24 forks source link

Fix: npm scripts - $(npm bin) wont execute on windows #366

Closed redraushan closed 5 years ago

redraushan commented 5 years ago

What

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.

Fix

Replaced $(npm bin) with node_modules/.bin