我一直遵循Facebook提供的步骤,并在尝试react-native init AwesomeProject
C:\Windows\system32\AwesomeProject\node_modules\react-native\local-cli\cliEntry.
js:30
import type {CommandT} from './commands';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Module._compile (C:\Windows\system32\AwesomeProject\node_modules\pirates\
lib\index.js:91:24)
at Module._extensions..js (module.js:663:10)
at Object.newLoader [as .js] (C:\Windows\system32\AwesomeProject\node_module
s\pirates\lib\index.js:96:7)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
如何解决此错误?一直在谷歌搜索,但没有帮助。