我无法在我的本机项目中链接库。我尝试了Google中的所有方法,但没有帮助。当我尝试在Atom中打开signing-config.json文件时,它说“ EPERM:不允许操作”
>react-native link
error No package found. Are you sure this is a React Native project?
error EPERM: operation not permitted, scandir 'E:/<ProjectName>/android/app/build/intermediates/signing_config/debug/out/signing-config.json'. Run CLI with --verbose flag for more details.
>react-native link --verbose
debug Available platforms: iOS, Android
debug Targeted platforms: iOS, Android
debug Getting project config for iOS...
error No package found. Are you sure this is a React Native project?
error EPERM: operation not permitted, scandir 'E:/<ProjectName>/android/app/build/intermediates/signing_config/debug/out/signing-config.json'
debug Error: EPERM: operation not permitted, scandir 'E:/<Projectname>/android/app/build/intermediates/signing_config/debug/out/signing-config.json'
at Object.readdirSync (fs.js:785:3)
at GlobSync._readdir (E:\CanaWho\node_modules\glob\sync.js:288:41)
at GlobSync._readdirInGlobStar (E:\<ProjectName>\node_modules\glob\sync.js:267:20)
at GlobSync._readdir (E:\<ProjectName>\node_modules\glob\sync.js:276:17)
at GlobSync._processReaddir (E:\<ProjectName>\node_modules\glob\sync.js:137:22)
at GlobSync._process (E:\<ProjectName>\node_modules\glob\sync.js:132:10)
at GlobSync._processGlobStar (E:\<ProjectName>\node_modules\glob\sync.js:380:10)
at GlobSync._process (E:\<ProjectName>\node_modules\glob\sync.js:130:10)
at GlobSync._processGlobStar (E:\<ProjectName>\node_modules\glob\sync.js:383:10)
at GlobSync._process (E:\<ProjectName>\node_modules\glob\sync.js:130:10)
答案 0 :(得分:1)
这个问题我已经困扰了好几个小时,但后来才发现。我这是一个愚蠢的错误。解决方案是以管理员身份运行 cmd