I'm facing this issue which is apparently triggered by this line of package-build-stats:
|
`$(npm pack --ignore-scripts ${packagePath} | tail -1)` |
The error message ("tail: invalid option -- 1") is not very helpful.
I have tried to create a minimal reproduction case but failed so far, also because I don't fully understand the purpose of that line of code (that is the
wrapCommand function).
What are you using
tail for?
And would you consider adding an error handler there and printing the
packagePath if an error occurs?
That would have helped me greatly in creating a minimal reproduction case.
System info:
Windows 10
node v16.13.1 (LTS)
npm v8.3.0
I'm facing this issue which is apparently triggered by this line of
package-build-stats:package-build-stats/src/utils/installation.utils.ts
Line 18 in 3545073
The error message ("tail: invalid option -- 1") is not very helpful.
I have tried to create a minimal reproduction case but failed so far, also because I don't fully understand the purpose of that line of code (that is the
wrapCommandfunction).What are you using
tailfor?And would you consider adding an error handler there and printing the
packagePathif an error occurs?That would have helped me greatly in creating a minimal reproduction case.
System info:
Windows 10
node v16.13.1 (LTS)
npm v8.3.0