You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If running a package's install script fails, Yarn leaves the broken package on disk and fails to detect that it still has problems on subsequent runs.
If the current behavior is a bug, please provide the steps to reproduce.
Pick a package that has a non-trivial install script and ensure that its install script will fail. (Installing phantomjs with no TMPDIR or TEMP in your environment should meet this criteria - see Installing phantomjs-prebuilt fails due to no npm_config_tmp #1538.)
Run yarn to install it. Note the error.
Run yarn again. It appears to work.
# Create a sample project with a problematic package.echo'{"devDependencies":{"phantomjs":"2.1.7"}}'> package.json
# Run Yarn. It will fail.
TMPDIR= TEMP= yarn
# Run Yarn again. It will appear to work, but the package is still not properly installed.
TMPDIR= TEMP= yarn
What is the expected behavior?
Running yarn the second time should give the same error as running it the first time. (Maybe it should track which packages still need to have their install scripts run, or maybe it should delete the package directory and mark it as not installed on error.)
Please mention your node.js, yarn and operating system version.
Node 4.6.1, Yarn 0.16.1, Ubuntu 14.04
The text was updated successfully, but these errors were encountered:
This has bitten me several times on TravisCI -- it will cache a broken build of phantomjs, since yarn reports it as working on a retry. Example here, where I get the message "Cannot read property 'pid' of undefined" due to a failure to start phantomjs.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If running a package's install script fails, Yarn leaves the broken package on disk and fails to detect that it still has problems on subsequent runs.
If the current behavior is a bug, please provide the steps to reproduce.
phantomjs
with noTMPDIR
orTEMP
in your environment should meet this criteria - see Installing phantomjs-prebuilt fails due to no npm_config_tmp #1538.)yarn
to install it. Note the error.yarn
again. It appears to work.What is the expected behavior?
Running
yarn
the second time should give the same error as running it the first time. (Maybe it should track which packages still need to have their install scripts run, or maybe it should delete the package directory and mark it as not installed on error.)Please mention your node.js, yarn and operating system version.
Node 4.6.1, Yarn 0.16.1, Ubuntu 14.04
The text was updated successfully, but these errors were encountered: