Npm Firebase tools install - android

I get such an error when I try to install Firebase tools with nodejs.
C:\Users\yusuf\Desktop\restful>npm install -g firebase-tools
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "firebase-
tools"
npm ERR! node v6.11.3
pm ERR! npm v3.10.10
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\yusuf\Desktop\restful\npm-debug.log
When I use this method I found in my research, the lines of code look like this.
npm config set registry http://registry.npmjs.org/
screen shoot

maybe you are behind a proxy, i think this might help : npm i -g firebase-tools -d .
Or you can use yarn yarn add firebase-tools.

If you not use vpn
try:
npm config rm proxy
npm config rm https-proxy

Related

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)

React Native Could Not Install

I am attempting to run the React Native sample on Android, located: https://github.com/brentvatne/react-native-scrollable-tab-view
Following the steps:
cd ...\react-native-scrollable-tab-view-master\examples\FacebookTabsExample
npm install ---fails
The error on this step is:
C:\Users\KJA\ReactNativeProjects\FacebookTabsExample>npm install
npm ERR! addLocal Could not install C:\Users\KJA
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.7.0
npm ERR! npm v3.6.0
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\KJA\ReactNativeProjects\FacebookTabsExample\npm-debug.log
I cannot locate why this is the case? How can this be alleviated?
Make sure you have installed the following modules globally first before trying to use this module
react
npm install react -g
react-native
npm install react-native -g
Then try and run the command again.

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

Issue while ionic installation

I am using the following command for installing cordova and ionic :
npm install -g cordova ionic
After running the command, i am getting the following error :
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\node
js\\node_modules\\npm\\bin\\npm-cli.js" "install" "npm" "-g"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular#0.12.1 wants generator-karma#>=0.9.0
npm ERR! peerinvalid Peer generator-angular-ui-router#0.5.3 wants generator-karma#~0.5.0
npm ERR! Please include the following file with any support request:
npm ERR! D:\iconic_start\npm-debug.log
I am having npm and node installed.
Probably some packages are outdated.
Try to run:
npm update -g
That will update everything, install missing packages, etc. Or as per the docs:
npm update -g will apply the update action to each globally- installed
package that is outdated -- that is, has a version that is different
from latest.
That should fix your problem.
More info on the update command here.
If not, simply try to reinstall your node.js.

Phonegap installation issue via cmd nodejs [windows 7]

Im trying to install phonegap using the cmd
"npm install -g phonegap"
but its not installing and giving me installation failed message ive pasted the cmd message below
so how do i set the proxy settings(assuming thats the issue) which nodejs can use to connect to the internet and complete the installation of phonegap
my system config is windows 7 64bit
C:\Windows\system32>npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program
Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack at errnoException (net.js:901:11)
npm ERR! stack at Object.afterConnect [as oncomplete]
(net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Windows\system32\npm-debug.log
npm ERR! not ok code 0
Solved it
Just had to set
npm config set proxy http://usr:pwd#proxyname:port
npm config set https-proxy http://usr:pwd#proxyname:port
npm config set registry http://registry.npmjs.org/

Categories

Resources