airtai / faststream

FastStream is a powerful and easy-to-use Python framework for building asynchronous services interacting with event streams such as Apache Kafka, RabbitMQ, NATS and Redis.
https://faststream.airt.ai/latest/
Apache License 2.0
2.2k stars 106 forks source link

Unexpected internal error: [Errno 2] No such file or directory: 'npx' #158

Closed davorrunje closed 1 year ago

davorrunje commented 1 year ago

Discussed in https://github.com/airtai/fastkafka/discussions/138

Originally posted by **fangorntreabeard** March 13, 2023 I really like this framework, but one mistake haunts me. Tell us how to fix it: Unexpected internal error: [Errno 2] No such file or directory: 'npx'
davorrunje commented 1 year ago

Thank you for your interest in the framework.

Before trying to create docs, you should install dependencies for creating docs using the following CLI command:

fastkafka docs install_deps

However, if you already have Node.js installed but not npx not, you will get the following error:

Unexpected internal error: [Errno 2] No such file or directory: 'npx'

I am sorry for this bug. It is related to the way we install Node.js and its dependencies. We just managed to reproduce the bug you have locally and I created this issue.

We will fix it by the end of next week latest.

sternakt commented 1 year ago

Added checks for npx and npx version and verbose Exceptions when npx is not found or major version is too low