安装create-react-native-app遇到的问题

yarn add babel-plugin-import --dev

yarn add v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "jest-expo > babel-jest@21.2.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0".
error An unexpected error occurred: "EPERM: operation not permitted, lstat 'C:\\Users\\syc\\antm-demo\\node_modules\\.bin'".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\syc\\antm-demo\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

解决方法:找到你项目下的node_modules\react-native\local-cli\server\server.js文件

process.on('uncaughtException', error => {
logReporter.update({
type: 'initialize_failed',
port: args.port,
error,
});

// process.exit(11); //找到这个注释掉
});
posted @ 2018-01-11 13:41  Tiramisu.man  阅读(2426)  评论(0编辑  收藏  举报