I followed this Up and running with PhoneGap on Mac OSX on every single step but then I got stuck with
I have tried many solutions and fixes but still nothing is working. I followed this answer but still stuck.
What could be the cause for these issues?!
Update1:
When I install cordova using sudo npm install -g cordova I get the following:
Even when I type cordova, I get -bash: cordova: command not found
Update2:
I fixed cordova installation using the following steps:
sudo chown -R $USER /usr/local
sudo chmod -R 0775 /usr/local
Add it to the path using this answer
Add the path to bash_profile using this link
Open the terminal and type cordova -v and you get it working displaying the version
Phonegap is still failing and can't seem to find a fix for it
Related
I've installed create-react-app using this command:
sudo npm install -g create-react-app
but when I run:
create-react-app my-app
I get this:
-bash: create-react-app: command not found
I'm using OSX so I've updated the .bash_profile to this as instructed after installing node
export PATH=$HOME/.node_modules_global/bin:$PATH
It's frustrating because it works perfectly fine on my other Mac and I've read countless forums trying to troubleshoot the issue. Can anyone shed some light on this issue for me without being rude?
I needed to add this to my .bash_profile
export PATH=$PATH:/Users/rafaelheard/.npm-packages/bin
then restart the Terminal
I have a problem here. I've installed cocoapods on my Mac because I need it for my XCode project. I've runned this command
gem install cocoapods
which works fine, all things were installed. But I after that when I tried to use any pod COMMAND thing, I've got the error - You cannot run CocoaPods as root.
I've looked through stackoverflow, and the main advices were to use this commands
sudo chown -R $USER ~/.cocoapods or sudo chown -R $USER ~/Library/Caches/CocoaPods
but the problem is none of those commands were working for me and I've got this error:
chown: /Users/user/.cocoapods: No such file or directory
Could you tell me where I'm wrong?
Ok, guys, I've figured out the problem. Just need to do what the error says. You shouldn't run pod install command with sudo or from the root user. It means - just open new terminal window and don't log to the root user and work with pod
I tried to install Logentries (Mac Agent) as instructed by the website itself. I followed the steps as instructed.
curl -O https://raw.githubusercontent.com/logentries/le/master/install/mac/install.sh
I downloaded the install.sh script and ran sudo ./install.sh. But that didn't work so I tried sudo sh install.sh.
When I do sudo le then I get same error message as marked in pic above.
I googled but didn't find the solution.
Thank you in advance.
Here is composer.json content
it's missing the formats directory.
sudo pip install formats
should resolve your issue here, then sudo sh install.sh
#user5384112 is correct, the error is being caused by a missing dependancy.
I have a PR to fix this for the Mac installer which should go live shortly.
You can install directly with by downloading with curl or download and install it. You should first look for missing dependencies before installing anything. You should have looked carefully in the documentation and error messages. The error clearly suggests you should have formats. for that do following
sudo pip install formats
I installed django 1.5.1 with PIP.
I am trying to learn Django, and tried to make a test project.
When I run pip freeze, it returns Django==1.5.1 as one of my installed packages.
When I run django-admin.py startproject test_project it returns, -bash: django-admin.py: command not found.
I cannot start this test project. Any advice as to how I can start a new django project?
I am on a Mac OSX 10.5.8.
I found the solution on this page.
I was able to solve my path issue by running:
sudo ln -s /usr/local/lib/python2.7/site-packages/django/bin/django-admin.py /usr/local/bin/django-admin.py
This created a "Permission Denied" error though. I was able to solve that issue by running:
sudo chmod +x /usr/local/bin/django-admin.py
django-admin.py is now working.
I have used follwong command to install (/usr/local/bin)
pip install django
django-admin startproject mysite
When I run installation with npm on OSX 10.8.3 for jam (npm install jam -g) and compound (npm install compound -g), the installation work well and all files go to /usr/local/share/npm/lib/node_modules/ as expected.
But the problem is I can't use the commands "jam" or "compound" (command not found).
I tried to change the /private/etc/paths adding the following lines :
/usr/local/share/npm/lib/node_modules/coffee-script/bin
/usr/local/share/npm/lib/node_modules/jam
/usr/local/share/npm/lib/node_modules/compound/bin
I restarted my mac and it worked fine for coffee-script but absolutely not for jam and compound
After,
I tried to add Alias of jam index.js as "jam" in the folder /usr/local/Cellar/node/0.10.5/bin it doesn't work.
Does any one had this problem and can help me ? I juste moved from 10.6 to 10.8 this week end.
Thanks
I think the problem came with the Brew installation.
Finlay, I removed all node modules an node it self.
First moved to this place : cd /usr/local/Cellar/
After I followed the instructions for Mac OSX 10.8 on the node.js GitHub page https://github.com/joyent/node/wiki/Installation
Install Command Line Tools Xcode: Preferences->Downloads install
Command Line Tools Note: I installed Xcode 4.5 in /Applications/Xcode
Download node.js src code
git clone https://github.com/joyent/node.git cd node git checkout
v0.8.2 Compiling Source Code
export
CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
export
CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
./configure && make && sudo make install
After I installed npm with the SH installer :
curl https://npmjs.org/install.sh | sudo sh
Now I enjoy compound on OSX 10.8