rnpm command not found after "sudo npm install rnpm -g" - facebook

I am still new to coding and I ran into a weird problem.
I am trying to use the facebook SDK in my react native app and I was following the tutorials for installing rnpm. However, after I installed rnpm package the "rnpm" command is still unusable. Can someone point out what I did wrong? I already installed the package globally.

Since last November, rnpm is part of the React Native core, so you don't need to install rnpm anymore. You can run directly 'react-native link' to link the dependencies that you instal using npm.

You need to install npm on your macbook
issue
sudo port install npm
https://medium.com/#samthor/installing-npm-on-mac-os-x-with-macports-27e9f380ffb7#.58c58rzca

Related

Running ionic project from mac to windows

I want to run one of the ionic project from mac to windows but I have error while doing npm install it does not generate node_modules too. Can someone help me or have any idea with this? I already tried upgrading all the versions to the latest and also downgrade node from 16 to 14 and ionic6 to ionic 4 but its still the same. Here is the error, I also tried downloading node-gyp Here is the error
The 4th last line of the logs has your answer. Node hasn't been properly installed on the machine or the incorrect command is being used.
Verify the installation & commands.

Can't Install latest version of Cocoapods

I'm not sure how, but I managed to install version 1.8.4 of cocoapods. However, I can't update it. I need to update it because the pods for the firebase google sign in require FirebaseAnalytics, and Firebase Analytics requires cocoapods to be 1.10.0. Whenever I try to update it, either by simply sudo gem install cocoapods or sudo gem update cocoapods, I get the following error:
The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.
This is odd because I do in fact have xcode developer tools installed.
And here are the pods (one of which requires FirebaseAnalytics)
Also see the error message:
This question is similar to several others--I'm asking a new question because the answers to those questions didn't help me and the questions were fairly old, so I doubt I'll get any help there.
I greatly appreciate your help. This problem alone is stopping me from using Firebase's google sign in in my application.
EDIT:
After I re-installed cocoapods with brew I checked my pod version, only to find that it was still 1.8.4. I then ran brew upgrade cocoapods and everything seemingly looked up to date. But I checked the version once more and am still seeing 1.8.4. What is going on here?
EDIT 2: bundle result
I was able to successfully (seemingly) install bundle, but I'm getting errors when I try to use bundle to install / update cocoapods.
EDIT 3: Solution Found?
I tried upgrading cocoapods again with brew, and for some reason it worked this time--even though last time I tried upgrading cocoapods with brew it didn't work. (Did bundle help?) I still have yet to see if this solves my original problem, but cocoapods is now version 1.11.2, the newest version. Thanks for all the help!
I think you are using the latest Xcode. just make sure your system cocoa pods up to date with the latest version. so just try this command in your terminal sudo gem install cocoapods and again try to install.
because firebase requirements in their website
You can also try - install swift package instead of pods it will also work

Cordova sms plugin capacitor

I have a problem in my app, I installed npm install cordova-sms-plugin
npm install #ionic-native/sms, and run command npx cap sync but doesn’t work, when update iOS, please your help. look at the image, it stays in that state

Ionic 2 app not installing #ionic-native/network

I'm trying to use cordova-plugin-network-information and #ionic-native/network in my ionic 2 app. However, I get the following error when trying to execute npm install --save #ionic-native/network.
npm WARN #ionic-native/network#3.8.1 requires a peer of #ionic-native/core#^3.6.0 but none was installed.
npm WARN #ionic-native/network#3.8.1 requires a peer of rxjs#^5.0.1 but none was installed.
How do I fix this? Do I need to upgrade to ionic 3?
You need to install ionic native 3.x. Seems you are using ionic native 2.x. please update your package.json. It should work. if I am not mistaken, the latest version is 3.6.1. please follow below guide for more details. Kindly note that it require quite some changes to migrate to ionic native 3.x but thing is you get to mock them which is supported in the browser.
https://github.com/driftyco/ionic-native/blob/master/README.md
Ashley
Most of the time we see warnings in our projects. However, these should not affect your application. But, as Ashley suggested, update your application to the latest version to ensure everything is working as it should.
Please use as root/admin if on ubuntu try this
sudo npm install
if on windows
open cmd as administrator

how to change the installation path of ionic frasmework in command prompot

I am new to Ionic, I have installed my ionic to C:\Users\myname, now I don't install ionic under user name folder, because it make my folder mess and i want to put them to one directory, meanwhile, i don't want to uninstall my ionic and corvoda and install them again !
does anyone have any solution for this.
Thanks
Install ionic and cordova using npm repository globally.First install node.js and follow the below instructions https://ionicframework.com/getting-started/