I also ran into this issue. In my case, the problem was caused by old versions of node that were still installed (via nvm). After cleaning the old installation the issue was resolved.