Skip to content

Commit

Permalink
Fix yarn berry install with pnp (#16)
Browse files Browse the repository at this point in the history
When yarn berry is used, the postinstall script fails with the following error.

```sh
➤ YN0007: │ fast-folder-size@npm:1.6.1 must be built because it never has been before or the last one failed
➤ YN0009: │ fast-folder-size@npm:1.6.1 couldn't be built successfully (exit code 13, logs can be found here: /private/var/folders/4q/141y2kz96395wsmj82ljtxs00000gn/T/xfs-6293f042/build.log)
➤ YN0000: └ Completed in 1s 894ms
```

Forcing the exit code to be 0 fixes the issue
  • Loading branch information
nantomarioni authored May 2, 2022
1 parent 8f526b7 commit 0bd31c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-sysinternals-du.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const unzipper = require('unzipper')

// Only run for Windows
if (process.platform !== 'win32') {
process.exit()
process.exit(0)
}

https.get('https://download.sysinternals.com/files/DU.zip', function (res) {
Expand Down

0 comments on commit 0bd31c5

Please sign in to comment.