react.jsx.TransformError: or: undefined is not an object (evaluating 'f.JSXTransformer=e()')

react.jsx.TransformError: or: undefined is not an object (evaluating 'f.JSXTransformer=e()')

我正在按照 https://github.com/reactjs/react-python 将我的 jsx 编译为 js,但我收到错误消息,堆栈跟踪是:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 56, in transform
    return JSXTransformer().transform(jsx_path, js_path)
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 43, in transform
    js = self.transform_string(i.read())
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 39, in transform_string
    raise TransformError(e.message[7:])
react.jsx.TransformError: or: undefined is not an object (evaluating 'f.JSXTransformer=e()')

有人能帮我吗?谢谢!

检查您的路径上是否可以访问节点二进制文件。