npm installation with firebase functions - android

i faced this error while i trying to install npm using cmd on windows 10
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc#1.6.6 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc#1.6.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MANA\AppData\Roaming\npm-cache\_logs\2017-11-21T07_27_36_499Z-debug.log
NPM install failed, continuing with Firebase initialization...
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
+ Firebase initialization complete!

Related

¿How can i add an npm install --force when i execute ionic build android?

I execute this command
ionic capacitor sync android
But i had this conflictive modules ->
C:\Users\DELL\Documents\inspecciones\inpecciones-app>ionic capacitor sync android
> npm.cmd i -E #capacitor/android#3.1.1
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: #angular-devkit/build-angular#15.1.5
npm ERR! Found: #angular/compiler-cli#12.0.5
npm ERR! node_modules/#angular/compiler-cli
npm ERR! dev #angular/compiler-cli#"~12.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/compiler-cli#"^15.0.0" from #angular-devkit/build-angular#15.1.5
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"^15.1.5" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #angular/compiler-cli#15.1.4
npm ERR! node_modules/#angular/compiler-cli
npm ERR! peer #angular/compiler-cli#"^15.0.0" from #angular-devkit/build-angular#15.1.5
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"^15.1.5" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\DELL\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Local\npm-cache\_logs\2023-02-14T21_22_36_075Z-debug-0.log
[ERROR] An error occurred while running subprocess npm.
npm.cmd i -E #capacitor/android#3.1.1 exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
So when it runs -> execute an npm i but i want to add an --force
In your package.json you can define custom scripts that can run multiple commands after each other.
Below is an Implementation that
installs npm Packages with -force flag
builds your ionic project
syncs your ionic build with your android build
opens android studio with your android project
To implement add this to your package.json:
"scripts":
{
"android": "npm i -force && ionic build && ionic capacitor sync android && ionic capacitor open android"
}
The script can be called with
npm run %script name%
So in this case:
npm run android

I'm facing these errors when I run command (npx react-native init AwesomeProject)

Downloading template
error Error: Command failed: npm install --save --save-exact react-native#latest
npm ERR! Windows_NT 10.0.18363
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "react-native#latest"
npm ERR! node v14.15.1
npm ERR! npm v4.0.0
npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\lenovo\AppData\Local\Temp\rncli-init-template-O81d4q\npm-debug.log
It looks like you are using npm 4, updating npm to a version >= 6 should fix your issue (which should come by default with Node 12 and 14) according to this issue here.
You might also try this solution:
C:\Users(your username)\AppData\Roaming
Delete the npm folder and if there is one npm cache folder.
Run npm cache clean —force ( — force is now required to clean cache)

Error while installing react-native-vcard package

I am trying to install 'React Native vCards' plugin for my react-native application. But when I run
npm install react-native-vcards#https://github.com/idxbroker/react-native-vcards.git --save
I am getting following errors
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t
https://github.com/idxbroker/react-native-vcards.git
npm ERR!
npm ERR! remote: Invalid username or password.
npm ERR! fatal: Authentication failed for
'https://github.com/idxbroker/react-native-vcards.git/'
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dijish/.npm/_logs/2018-09-02T10_18_24_987Z-
debug.log
Instead of this command
npm install react-native-vcards#https://github.com/idxbroker/react-native-vcards.git --save
Add "vcards-js": "git+https://git#github.com/idxbroker/vCards-js#react-native" to package.json dependencies
and run npm install
and use this plugin as import vCard from 'vcards-js';
Try this
npm install react-native-vcards#https://github.com/hammadj/react-native-vcards --save

How to open the React Native connection with SQLcipher

I am using the below command to add the lib
1.NPM install
npm install --save react-native-sqlcipher-storage
npm ERR! code E404
npm ERR! 404 Not Found: react-native-sqlcipher-storage#latest
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dasaraa\AppData\Roaming\npm-cache_logs\2017-06-27T13_34_4
6_011Z-debug.log

Getting Error npm ERR! errno 50 while installing Ionic

Hello I tried making Ionic App using node.js
first time I successfully made the simple Hello World Project in ionic
Next day because of the some reason i have to re-install the node.js
now when i am trying to make ionic app It's giving me an error
Your environment has been set up for using Node.js 0.10.32 (ia32) and npm.
C:\Users\SABA-PC>npm install -g ionic gulp
npm ERR! Error: EPERM, unlink 'C:\Users\SABA-PC\AppData\Roaming\npm\node_modules
\ionic\node_modules\.bin'
npm ERR! { [Error: EPERM, unlink 'C:\Users\SABA-PC\AppData\Roaming\npm\node_mod
ules\ionic\node_modules\.bin']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\Users\\SABA-PC\\AppData\\Roaming\\npm\\node_modules\\ionic
\\node_modules\\.bin' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "gulp"
npm ERR! cwd C:\Users\SABA-PC
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path C:\Users\SABA-PC\AppData\Roaming\npm\node_modules\ionic\node_modul
es\.bin
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, unlink 'C:\Users\SABA-PC\AppData\Roaming\npm\node_m
odules\ionic\node_modules\.bin'
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\SABA-PC\AppData\Roami
ng\npm\node_modules\ionic\node_modules\.bin'
npm ERR! error rolling back { [Error: EPERM, unlink 'C:\Users\SABA-PC\AppData\R
oaming\npm\node_modules\ionic\node_modules\.bin']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'C:\\Users\\SABA-PC\\AppData\\Roaming\\npm\\
node_modules\\ionic\\node_modules\\.bin' }
npm ERR! not ok code 0
In my Environment Variable Path=C:\Users\SABA-PC\AppData\Roaming\npm
i tried location the folder C:\\Users\\SABA-PC\\AppData\\Roaming\\npm\\
node_modules\\ionic\\node_modules\\.bin
which is saying Access is denied eventhough i am running node.js as a administrator
Please help
There might be a problem with your node or npm as you've said you had to reinstall it. Try to change the location of your npm cache by running this command:
npm config set cache C:\Users\SABA-PC\AppData\Roaming\nodejs\npm-cache --global
And read more about npm updates here:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows

Categories

Resources