初始化项目问题



  • 用react-native脚手架初始化项目的时候,报下面错误了。删了重新安装,还是一样,求解决
    Error: Cannot find module 'metro-bundler/src/lib/formatBanner'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\suneee\Desktop\reactpro\AwesomeProject\node_modules\react-native\local-cli\server\checkN
    odeVersion.js:12:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)


登录后回复