Sorry, did not notice at first that you were talking about Webassembly. Well, in that case situation is even more complicated. Running and debugging wasm is not supported in CLion right now (there are some feature requests about it though, e.g.
https://youtrack.jetbrains.com/issue/CPP-11559). So, from IDE point of view there is no difference between CLion and IDEA for such K/N applications. Probably it would be even better to stick with IDEA Ultimate than with CLion - since it has JavaScript support.