RN react-native-sqlite-storage报错了

throw err;

^

Error: Cannot find module 'react-native/setupBabel'

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. (/Users/plus/Desktop/RN/PTclient/node_modules/[email protected]@react-native-sqlite-storage/scripts/rnpm-postlink.js:5:1)

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)

/Users/plus/Desktop/RN/PTclient/node_modules/[email protected]@react-native/local-cli/core/makeCommand.js:19

throw new Error(`Error occured during executing "${command}" command`);

^

Error: Error occured during executing "node_modules/react-native-sqlite-storage/scripts/rnpm-postlink.js" command

at ChildProcess.prelink (/Users/plus/Desktop/RN/PTclient/node_modules/[email protected]@react-native/local-cli/core/makeCommand.js:19:15)

at emitTwo (events.js:106:13)

at ChildProcess.emit (events.js:191:7)

at maybeClose (internal/child_process.js:877:16)

at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

你可能感兴趣的:(RN react-native-sqlite-storage报错了)