![](/img/trans.png)
[英]Cordova failed to install 'cordova-plugin-whitelist': Error: ENOENT: no such file or directory AndroidManifest.xml
[英]error ENOENT: no such file or directory, open 'app/src/main/AndroidManifest.xml'
我确实运行程序react-native以使用代码react-native run-android和npm start,但程序错误文件AndroidManifest(如果有文件)。
错误ENOENT:没有此类文件或目录,请打开“ app / src / main / AndroidManifest.xml” package.json
{
"name": "react-native-inappbrowser-reborn",
"version": "2.0.4",
"description": "InAppBrowser for React Native",
"main": "index.js",
"readmeFilename": "README.md",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "index.js",
},
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git@github.com:proyecto26/react-native-inappbrowser.git"
},
"bugs": {
"url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
},
"keywords": [
"react-native",
"in",
"app",
"browser",
"inappbrowser",
"in-app-browser"
],
"author": "Juan David Nicholls Cardona",
"homepage": "https://github.com/proyecto26/react-native-inappbrowser",
"license": "MIT",
"peerDependencies": {
"react-native": ">=0.55.0"
},
"dependencies": {
"invariant": "^2.2.4",
"react-native": "^0.59.9"
},
"devDependencies": {
"babel-core": "^6.26.0",
"flow-bin": "^0.80.0"
}
}
数据
This error is caused by `hasteImpl` returning the same name for different files.
at setModule (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:569:17)
at workerReply (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:641:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:16876) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
在"test": "echo \\"Error: no test specified\\" && exit 1",
之后添加逗号"test": "echo \\"Error: no test specified\\" && exit 1",
在"start": "index.js"
后删除逗号"start": "index.js"
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "index.js"
},
正确的json
{
"name": "react-native-inappbrowser-reborn",
"version": "2.0.4",
"description": "InAppBrowser for React Native",
"main": "index.js",
"readmeFilename": "README.md",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "index.js"
},
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git@github.com:proyecto26/react-native-inappbrowser.git"
},
"bugs": {
"url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
},
"keywords": [
"react-native",
"in",
"app",
"browser",
"inappbrowser",
"in-app-browser"
],
"author": "Juan David Nicholls Cardona",
"homepage": "https://github.com/proyecto26/react-native-inappbrowser",
"license": "MIT",
"peerDependencies": {
"react-native": ">=0.55.0"
},
"dependencies": {
"invariant": "^2.2.4",
"react-native": "^0.59.9"
},
"devDependencies": {
"babel-core": "^6.26.0",
"flow-bin": "^0.80.0"
}
}
谢谢,这也帮助了我。 如果有人像我这样,切入点对于这个解决方案很重要
这可能也有帮助。 在此处输入链接说明
我的问题出在我安装qs.js并在git bash窗口的安装过程中将其停止之后(我是从$ path以用户身份登录,而不是显式地以Admin身份登录),我最终做了react-native-clean-project同样,这也没有解决这个特定问题
不:Win 10,Android模拟器,React-Native-Debugger 0.10.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.