-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[api-extractor] /usr/bin/env: 'node\r': No such file or directory
when starting version 7.38.1 with npx
#4413
Comments
This sounds like the bin stub was emitted with CRLF line endings for some reason. |
@dmichon-msft @iclanton it sounds related to this Zulip issue report:
|
Proposal for PNPM to catch this problem in the future: pnpm/pnpm#7311 |
Summary
Running any command with
api-extractor
throughnpx
, e.g.npx api-extractor run
crashes with the errorI am only seeing this error on version 7.38.1 of Api-Extractor, not 7.38.0. It is also only occuring on Linux, the command works fine in Windows.
Repro steps
On Linux, create a minimal repository with
api-extractor
setup, the package having version 7.38.1Run e.g.
npx api-extractor run
Expected result:
Api-Extractor runs with the associated settings
Actual result:
Api-Extractor crashes with the above error message.
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?node -v
)?The text was updated successfully, but these errors were encountered: