I installed blitz like this yarn global add blitz but then when I try to create a new project blitz new myApp I get this error zsh: command not found: blitz.
I guess I have to add something to my $HOME/.zshrc file but I don't know what.
How can I fix this?
This is my $HOME/.zshrc:
export ZSH="/Users/user/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
I end up using npm install -g blitz --legacy-peer-deps to install it.
Related
I switched my ubuntu shell from bash to zsh.
Everything works fine and base commands like ls are actually working.
But the problem is that my installed apps like Sublime-text and VScode aren't found at all.
I type subl program.c and get the following response: zsh: command not found: subl
I type which subl and get the following response: subl not found
Here's my .zshrc file:
export PATH=$HOME/bin:/usr/local/bin:$PATH
...
export ZSH="/home/kianoush/.oh-my-zsh"
...
ZSH_THEME="robbyrussell"
...
plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
...
export PATH="/usr/local/man:$PATH"
I tried redefining the PATH variable but probably I'm doing it wrong.
I have the same problem with other apps like VScode.
I fixed it by inputting the following commands in my terminal:
sudo ln -s /snap/sublime-text/109/opt/sublime_text/sublime_text /usr/local/bin/subl
Note that I installed sublime using snap. For versions installed using apt you should probably use the following command:
sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
Basically, just find your sublime_text files and link them to /usr/local/bin/subl
I just install Meteor 1.4.1.1. on my 32 bit Ubuntu 12.04. But I haven't luck when trying to add angular templates.
Here is the error message I've got:
/home/wandyatmono/.meteor/packages/meteor-tool/.1.4.1_1.1l5666a++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
Error: ENOENT: no such file or directory, open '/tmp/mt-14c7sa8/os.json'
at Error (native)
Can somebody tell me why?!
Use this command:
meteor npm rebuild
If the issue is still un-resolved- Try this
To Quote the solution there:
Adding "54.192.225.217 warehouse.meteor.com" to my host file fixed the issue.
If your environment is Ubuntu, then open the terminal and paste
sudo -i gedit /etc/hosts Paste: "54.192.225.217 warehouse.meteor.com"
at the end of the file. save and close. Now run your app.
I'm using zsh on my Ubuntu VPS.
When I try to find version
php -v
zsh: command not found: php
and my php executable somehow got into
whereis php
php: /usr/share/php
How can I point it to right path?
export PATH=$PATH:/usr/share/php/bin
Add this to your .zshrc (assuming /usr/share/php/bin is the directory in which the php binary lives).
Ho you have to over write all commands to zsh
try this
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
Just reinstall PHP and overwrite any previous installation with this:
brew link --overwrite php
I'm trying to install Theos on my iMac using the instructions from HERE.
It seems to have installed correctly, but when I try to set up a new project in terminal using:
$THEOS/bin/nic.pl
It says:
-bash: /bin/nic.pl: No such file or directory
Any help would be great!
You should unhide your OSX hidden files using this command through TERMINAL :
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
Then open .bash_profile under your USERNAME folder
[edit]
if .bash_profile doesn't existe
Open TERMINAL then write
touch .bash_profile
Then
open -a TextEdit.app .bash_profile
Then add this line inside
export THEOS=/opt/theos
Good luck
If you followed the guide of iphonedevwiki you should have all that you need to use theos. The correct way to call nic.pl should be:
sudo su
/opt/theos/bin/nic.pl
I am new to phpunit and just installed it. To make it accessible globally, i moved it from my MAMP PHP5.5.3 bin to
/usr/local/bin
so now, when i type
which phpunit
I get
/usr/local/bin/phpunit
but when I type
phpunit --version
I get nothing, terminal just returns a new blank line.
From the tutorial i followed, I am supposed to get something like this:
PHPUnit 3.6.12 by Sebastian Bergmann.
Did i miss something? Thanks
try run phpunit without args. If you still don't get any output than you may have an incomplete setup of phpunit or you may have broken it when you moved it to /usr/local/bin/
Try moving it back to the mamp folder then create a symlink to the /usr/local/bin/ folder.
I thik you can doit like this:
sudo ln -s path/to/phpunit/executible /usr/local/bin/phpunit
Hope this helped