Install phonegap on Mac - macos

I installed node.js on my Mac.
Afterwards, I tried to install phonegap but it returned this error:
How can I fix the problem?

try to use the install command without "$"

Related

How do i install xcode on my ubuntu machine?

I have Lenovo Ideapad310 laptop with Ubuntu OS. But for iOS development I want to install Xcode in my machine, so how can i install Xcode in my machine?
please anyone help me??
First: You can't install Xcode on Ubuntu it's restricted only for Mac OS.
Second: I assume you want Swift, which you can install it over terminal using this command
sudo apt-get install clang
If you installed the Swift toolchain on Linux to a directory other than the system root, you will need to run the following command, using the actual path of your Swift installation:
export PATH=/path/to/Swift/usr/bin:"${PATH}"
You can verify that you are running the expected version of Swift by entering the swift command and passing the --version flag:
swift --version
for IDE you might use Visual Studio Code and install Swift plugin.
Good Luck

When installing Appcelerator CLI, appc setup command throws error

I am trying to install the appcelerator cli but keep running into an issue that I haven't been able to find a fix for.
When running the "appc setup" command I get the error "cannot find module 'C:\cyclic.js'"
link to full screen capture of error
I am running windows 7 64 bit and am following the directions here https://web.appcelerator.com/product/cli
*Edit: If you are facing this same issue. Uninstall Node, and Appcelerator. Then make sure you install JDK 32 Bit (if using windows). DELETE the NPM and Appcelerator folders in your C:\Users[username]\AppData\Roaming\ directory. Then reinstall Node (I had success with 32 bit) and the Appcelerator CLI. That worked for me.
Hello make sure you have node.js and JDK installed and environment variable set properly. For reference http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration. Now, As you already tried "appc setup". You need to delete all cache of previous installation try and try reinstalling again. Run,
sudo rm -rf ~/.appcelerator
sudo npm uninstall -g appcelerator
appc use latest
appc setup
To setup the Appcelerator CLI, install Node.js, install the appcelerator module using the NPM CLI, then run the appc setup command to download and setup the latest CLI package. You can follow the guide here. Also you can check this link, if you experience an issue installing any of the npm packages.
If still not solved, I suggest you to start from scratch. I see you work on Windows, true?:
Remove install of NodeJS from "Uninstall programms" of control pannel
Remove install of Appcelerator from "Uninstall programms" of control pannel
Remove any folder from C:\Program Files or your user's folder referencing "node" "npm" or similar.
Go to your user's folder and remove any .app or .appcelerator folder (could be hidden, so look it well)
Don't forget to look in C:\Users\[username]\AppData\Roaming (probably will be hidden)
Now you have only Java JDK installed (I'm using 1.8).
Proceed with a new appcelerator.EXE install, it must detect that you don't have Node and will download by itself the proper Node version.

Fail install compass in Mac OS X 10.10

I am trying to install compass via terminal from Mac OS X 10.10, but I didn't do this, I saw many article that people have problem during the instal in this OS, anybody help me to install compass ? Below this comment will be the link from pastebin with the content for return command gem install compass.
http://pastebin.com/Uyn5K8W6
t looks like maybe your Mac doesn't have xcode command line tools installed. Try this in the terminal then try installing again:
xcode-select --install
You will also need to accept the license agreement. I think it asks you automatically now.
In case your development log states:
"You have to install development tools first."
Install xcode by running the following command:
`xcode-select --install`

Titanium thinks I have 3.1.2 but I installed 3.4.1. What to do?

I opened Titanium after about a year without using it. I upgraded everything before doing anything but now everything crashes.
Here is what I have:
Under titanium studio I am able to set the SDK to 3.4.1, but when I try to create a project I get:
[31m Command "create" incompatible with this version of the Titanium CLI[39m
[WARN] : Requires version >=3.2.1, currently 3.1.2
So then I went to terminal and run
titanium -v
and I get
3.1.2
I tried
sudo npm install -g titanium
But it doesn't seem to do nothing.
I also tried to uninstall Titanium with
sudo npm -g uninstall titanium
but I get
npm WARN uninstall not installed in /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/lib/node_modules: "titnaium"
When I run
type -a titanium
I get
titanium is /usr/local/bin/titanium
I also tried restarting my computer, opening and closing Studio, etc...but I am totally lost, for some reason I can't make it work.
Any idea on how to solve this will be appreciated! Thanks
First of all run following command in CLI
ti sdk select
Select the 3.4.1 as your sdk and let me know if that solved the problem
Thanks

Uninstall phonegap from windows 7

can anyone tell me the proper way to uninstall phonegap 2.9.1 from windows 7. can't find it in any of my uninstaller program. i don't think just deleting the folder is the proper way.
Thanks
Assuming you installed with node.js, then you simply go
npm uninstall phonegap
to remove the local package or
npm uninstall --global phonegap
to remove the global install

Resources