ejs@3.1.3 安装后:`node --harmony ./postinstall.js 退出状态 1

ejs@3.1.3 postinstall: `node --harmony ./postinstall.js Exit status 1

当我尝试使用 npm 安装 ejs 时出现此错误,我无法在我的电脑上安装 ejs。谁能帮我解决这个问题?

我尝试了 Google 中的所有可用方法,最后,我通过此命令获得了解决方案 npm install ejs --force 我们可以将 ejs 强制安装到您的项目中。