Is there a way to log the output of npm install command July 23, 2023 by Tarik npm install 2>&1 | tee log.txt The 2>&1 routes stderr to stdout, so everything will output in a single stream.