Closed ashutoshc8101 closed 3 years ago
@ashutoshc8101 Installing yarn
is a part of the dev setup. We are trying to avoid usage of npm
as compared to yarn
, because of its multiple downsides and slowness.
@akshatnitd should i close this issue and associated PR ?
@ashutoshc8101 Yes please
Actual Behaviour
npm test
andnpm run predeploy
throws error for developers who haven't installed yarn globallyExpected Behaviour
npm test
andnpm run predeploy
should work fine without having to install yarn globallySteps to reproduce it git clone
cd susi.ai
npm install
npm test || npm run predeploy
Screenshots of the issue
Would you like to work on the issue? I would like make global installation of yarn optional to work on project for developers. I will add yarn to
devDependencies
inpackage.json
. So tha dev have a local installation of yarn in project andnpm test
andnpm run predeploy
work fine afternpm install
command I will change test and predeploy scripts fromyarn lint
toyarn || npm lint
so that if yarn is not installed script should run with npm