[![enter image description here][1]][1]I've installed an extension via ssh on magento 2, compiled and everithing is ok.
The problem is that when enabling production mode i have the error in the image.
Any thoughs? Let me know if you need more information, thank you (magento 2.2.4)

[1]: https://i.sstatic.net/u1WzV.png