Could not install from ".." as it does not contain a package.json file.
Closed this issue · 0 comments
Unable to install the latest version 2.1.0.
Error log:-
Gaurav-Joshi:Example gaurav$ npm i react-native-google-pay
npm ERR! code ENOLOCAL
npm ERR! Could not install from ".." as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gaurav/.npm/_logs/2020-06-02T06_38_18_116Z-debug.log
/Users/gaurav/.npm/_logs/2020-06-02T06_38_18_116Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli 'react-native-google-pay' ]
2 info using npm@6.4.1
3 info using node@v10.15.0
4 verbose npm-session 2e0c0c7924bb247f
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for react-native-google-pay@file:.. Could not install from ".." as it does not contain a package.json file.
8 timing stage:rollbackFailedOptional Completed in 0ms
9 timing stage:runTopLevelLifecycles Completed in 686ms
10 verbose stack Error: ENOENT: no such file or directory, open '/Users/gaurav/Desktop/package.json'
11 verbose cwd /Users/gaurav/Desktop/Example
12 verbose Darwin 17.7.0
13 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "react-native-google-pay"
14 verbose node v10.15.0
15 verbose npm v6.4.1
16 error code ENOLOCAL
17 error Could not install from ".." as it does not contain a package.json file.
18 verbose exit [ 1, true ]
But the prevoius build works
npm i react-native-google-pay@2.0.0