美文网首页
安装AwesomeProject

安装AwesomeProject

作者: 大写的空气 | 来源:发表于2018-06-19 16:47 被阅读0次


安装步骤参照:https://reactnative.cn/docs/0.51/getting-started.html

使用Mac安装,在此过程中,遇到

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Module.require (module.js:353:17)

    at require (internal/module.js:12:17)

    at Object. (/home/qubianzhong/workspace/antzb-operate/operate-backend/bin/www:7:11)

    at Module._compile (module.js:409:26)

    at Object.Module._extensions..js (module.js:416:10)

此类报错,辗转反侧后,确定问题为node版本过低。安装前本地版本为5.7.1,不支持ES6.

安装node路径:https://nodejs.org/zh-cn/download/current/  。安装完后再参照前面所给的链接,顺利安装成功

相关文章

网友评论

      本文标题:安装AwesomeProject

      本文链接:https://www.haomeiwen.com/subject/ixtzeftx.html