Codeceptjs: sh: yarn: command not found

Created on 5 Feb 2018  路  4Comments  路  Source: codeceptjs/CodeceptJS

since codeceptjs is updated to @1.1.3, yarn: command not found error has occurred.

What does preinstall do?
Can you add a check that before running this script preinstall?

$ [email protected] preinstall /var/builds/workspace/286168-v3-corp-int/BUILD_CONTAINER/node8/label/DOCKER-LOW/app_root/node_modules/.staging/codeceptjs-97511797
$ yarn --ignore-scripts
$ sh: yarn: command not found

Most helpful comment

Yeah, sorry, I thought I removed that line but accidentally it passed to release.
So I removed and published a new release

All 4 comments

oh, sorry, looks like someone added yarn dependency.
Yarn is an alternative to npm

So is yarn just necessary now? No way to sidestep or ignore it?

The problem was introduced in this commit, in what seems to have been a likely unnecessary change that was never reverted?

  • My morbid curiosity is seeing what swapping yarn with npm will do.

Yeah, sorry, I thought I removed that line but accidentally it passed to release.
So I removed and published a new release

Was this page helpful?
0 / 5 - 0 ratings