【发布时间】:2018-09-07 10:48:07
【问题描述】:
我已将 react-native-maps 安装为全局 当我使用 react-native 链接 react-native-maps 它给我这个错误任何人都可以帮助我解决这个问题我使用的是节点版本 6.14.4 npm 版本 6.4.1
这是错误
/home/yasiru/easybooking/project/Yasi/node_modules/react-native/local-cli/server/checkNodeVersion.js:43 ); ^ SyntaxError: Unexpected token ) at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/yasiru/easybooking/project/Yasi/node_modules/react-native/local-cli/cli.js:17:1)
【问题讨论】:
-
欢迎来到Stack Overflow。请查看How to Ask 部分和edit 您的问题,以便提供minimal reproducible example。
标签: react-native npm react-native-maps