I tried run npm run setupandinstall to install the plugin and get the demo apps ready.
But it failed with the below error
npm run setupandinstall
@nativescript/firebase@11.1.3 setupandinstall
npm i && npm run tsc && npm run package && cd ../demo && npm i && cd ../demo-ng && npm i && cd ../demo-push && npm i && cd ../src && npm run tsc && cd ../demo && tns plugin add ../src && cd ../demo-ng && tns plugin add ../src && cd ../demo-push && tns plugin add ../src && cd ../src
Error: Cannot find module '/****/nativescript-plugin-firebase/src/scripts/postinstall.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
at Function.Module._load (node:internal/modules/cjs/loader:763:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code 1
npm ERR! path /****/nativescript-plugin-firebase/src
npm ERR! command failed
npm ERR! command sh -c node postinstall-hooks.js && node scripts/postinstall.js
npm ERR! A complete log of this run can be found in:
npm ERR! /*/.npm/_logs/2020-12-17T09_50_02_301Z-debug.log
npm ERR! code 1
npm ERR! path /***/nativescript-plugin-firebase/src
npm ERR! command failed
npm ERR! command sh -c npm i && npm run tsc && npm run package && cd ../demo && npm i && cd ../demo-ng && npm i && cd ../demo-push && npm i && cd ../src && npm run tsc && cd ../demo && tns plugin add ../src && cd ../demo-ng && tns plugin add ../src && cd ../demo-push && tns plugin add ../src && cd ../src
npm ERR! A complete log of this run can be found in:
npm ERR! /****/.npm/_logs/2020-12-17T09_50_02_352Z-debug.log
As per the instructions in the URL
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ML_KIT.md
I tried run npm run setupandinstall to install the plugin and get the demo apps ready.
But it failed with the below error
npm run setupandinstall
node:internal/modules/cjs/loader:922 throw err; ^
Error: Cannot find module '/****/nativescript-plugin-firebase/src/scripts/postinstall.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15) at Function.Module._load (node:internal/modules/cjs/loader:763:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! code 1 npm ERR! path /****/nativescript-plugin-firebase/src npm ERR! command failed npm ERR! command sh -c node postinstall-hooks.js && node scripts/postinstall.js
npm ERR! A complete log of this run can be found in: npm ERR! /*/.npm/_logs/2020-12-17T09_50_02_301Z-debug.log npm ERR! code 1 npm ERR! path /***/nativescript-plugin-firebase/src npm ERR! command failed npm ERR! command sh -c npm i && npm run tsc && npm run package && cd ../demo && npm i && cd ../demo-ng && npm i && cd ../demo-push && npm i && cd ../src && npm run tsc && cd ../demo && tns plugin add ../src && cd ../demo-ng && tns plugin add ../src && cd ../demo-push && tns plugin add ../src && cd ../src
npm ERR! A complete log of this run can be found in: npm ERR! /****/.npm/_logs/2020-12-17T09_50_02_352Z-debug.log