安装AwesomeProject

2018-06-19  本文已影响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/  。安装完后再参照前面所给的链接,顺利安装成功

上一篇 下一篇

猜你喜欢

热点阅读