Skip to content

tail: invalid option -1 #48

@LucaBlackDragon

Description

@LucaBlackDragon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions