我正在尝试从https://github.com/facebook/fbctf安装Facebook CTF
按照说明执行./extra/provision.sh -m prod -s $PWD
一切都进行得很顺利,直到它运行到发出呼叫声的部分。它正在命中javascript文件中的代码
const proto = Object.defineProperties(() => {}, {
...styles,
level: {
enumerable: true,
get() {
return this._generator.level;
},
set(level) {
this._generator.level = level;
}
}
});它在样式前面的省略号处犹豫不决。
它给出了这个错误。
...styles,
^^^
SyntaxError: Unexpected token ...有没有人在安装fbctf时遇到这个错误,或者能发现Javascript错误?谢谢你的帮忙
发布于 2020-12-11 12:49:17
我正在使用快速设置说明,并且遇到了类似的问题。我在下面的说明中解决了使用npm升级nodejs版本的问题。https://phoenixnap.com/kb/update-node-js-version
注意:在运行install命令之前,我在命令行上安装了nodejs。
https://stackoverflow.com/questions/64455242
复制相似问题