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
Error code is non-zero, but errors are written to stdout instead of stderr.
Additional information:
node -v prints: v16.15.1
Windows, macOS, or Linux?: OSX 12.4
Note: The particular error used to demonstrate this issue only occurs the first time pnpm install is run. The second time pnpm install runs there is no error. However if you reset the test case and follow the steps above it will reproduce it.
The text was updated successfully, but these errors were encountered:
This looks like it's not specific to pnpm install or ERR_PNPM_PEER_DEP_ISSUES, for some reason pnpm prints all output to stdout (or stderr if you're using the --use-stderr option). Most CLI tools don't work this way, usually informational text, warnings and errors are printed out to stderr.
For most CLI tools you would expect this to suppress all non-error output but still print errors, but this unfortunately doesn't work with pnpm since all output is being written to stdout.
pnpm i >/dev/null
Shouldn't pnpm be outputting errors to stderr by default?
pnpm version:
v7.12.0
Code to reproduce the issue:
git clone https://github.com/raineorshine/nest-api-example cd nest-api-example pnpm install npx npm-check-updates -u node spawn-pnpm-test.js
Note that
spawn-pnpm-test.js
simply spawnspnpm install
and makes it clear what is written tostdout
and what is written tostderr
:Expected behavior:
Errors should be written
stderr
.Actual behavior:
Error code is non-zero, but errors are written to
stdout
instead ofstderr
.Additional information:
node -v
prints:v16.15.1
Note: The particular error used to demonstrate this issue only occurs the first time
pnpm install
is run. The second timepnpm install
runs there is no error. However if you reset the test case and follow the steps above it will reproduce it.The text was updated successfully, but these errors were encountered: