Cross-posting from https://discuss.cocos2d-x.org/t/issue-with-compiling-a-project/57198 I am having an issue trying to compile a new cocos2dx JS project. I have a fresh Ubuntu 18.04 box setup with Java 1.8, Cmake, and all other dependencies as mentioned @ https://docs.cocos.com/cocos2d-x/manual/en/installation/Linux.html Now when I create and run new projects with It works flawlessly. But when I try to compile with cocos compile -p web -m