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/_react-native-sqlite-storage@3.3.3@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/_react-native@0.36.1@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/_react-native@0.36.1@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)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容