gpt4 book ai didi

node.js - 在 Node 上安装 Reveal.js

转载 作者:太空宇宙 更新时间:2023-11-04 00:38:10 25 4
gpt4 key购买 nike

我正在尝试在 Node 上安装 Reveal.js,以便我可以在本地使用演讲者备注。

我按照说明操作但没有成功:https://github.com/hakimel/reveal.js/#full-setup

我在第一步中遇到这些错误:

SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:235:25)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)

如果您需要更多信息,请告诉我。我安装了 Node v4.4.6 LTS。

最佳答案

我只是按照 Node.js 版本 v5.7.0(npm 版本 v3.8.1)的说明进行操作,没有任何问题。

我建议安装 nvm ( https://github.com/creationix/nvm ),这样您就可以轻松切换 Node 版本来解决此类问题。

编辑:

如果您无法克隆存储库,请按照以下说明安装 git:

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

将说明中的命令粘贴到终端时,请确保不要复制 $

关于node.js - 在 Node 上安装 Reveal.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38042884/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com