New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn global add not working properly on Ubuntu 18.04/zsh/bash #6532
Comments
You need to add output of I wish Yarn did something to make this more clear though. Perhaps print a message when running |
@xPaw Thanks! And from a noob's perspective: Yes this should be better explained somewhere. 💯 |
Did you miss a slash after |
Ah lol! Yeah, I just spotted that myself 😄 I must've accidentally removed it when I replaced a part of the output with the $HOME variable 😝 : |
Anyways, thanks! It worked perfectly when I added the slash 😁 |
That sounds like a great idea :o Something like this:
|
Had same issue. The
|
Hello after some digging on internet all solutions doesn't work for me or i'm so dumb that i can't resolve it myself . Can someone help me please .
same with npm
Thanks a lot for your help
For brew, at leastexport PATH="$PATH:/usr/local/share/npm/bin" Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.Initialization code that may require console input (password prompts, [y/n]confirmations, etc.) must go above this block; everything else may go below.if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then If you come from bash you might have to change your $PATH.export PATH=$HOME/bin:/usr/local/bin:$PATHPath to your oh-my-zsh installation.export ZSH="/home/sylvain/.oh-my-zsh" Set name of the theme to load --- if set to "random", it willload a random theme each time oh-my-zsh is loaded, in which case,to know which specific one was loaded, run: echo $RANDOM_THEMESee https://github.com/ohmyzsh/ohmyzsh/wiki/ThemesZSH_THEME="powerlevel10k/powerlevel10k" Set list of themes to pick from when loading at randomSetting this variable when ZSH_THEME=random will cause zsh to loada theme from this variable instead of looking in $ZSH/themes/
a theme from this variable instead of looking in $ZSH/themes/If set to an empty array, this variable will have no effect.ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )Uncomment the following line to use case-sensitive completion.CASE_SENSITIVE="true"Uncomment the following line to use hyphen-insensitive completion.Case-sensitive completion must be off. _ and - will be interchangeable.HYPHEN_INSENSITIVE="true"Uncomment the following line to disable bi-weekly auto-update checks.DISABLE_AUTO_UPDATE="true"Uncomment the following line to automatically update without prompting.DISABLE_UPDATE_PROMPT="true"Uncomment the following line to change how often to auto-update (in days).export UPDATE_ZSH_DAYS=13Uncomment the following line if pasting URLs and other text is messed up.DISABLE_MAGIC_FUNCTIONS="true"Uncomment the following line to disable colors in ls.DISABLE_LS_COLORS="true"Uncomment the following line to disable auto-setting terminal title.DISABLE_AUTO_TITLE="true"
DISABLE_AUTO_TITLE="true"Uncomment the following line to enable command auto-correction.ENABLE_CORRECTION="true"Uncomment the following line to display red dots whilst waiting for completion.COMPLETION_WAITING_DOTS="true"Uncomment the following line if you want to disable marking untracked filesunder VCS as dirty. This makes repository status check for large repositoriesmuch, much faster.DISABLE_UNTRACKED_FILES_DIRTY="true"Uncomment the following line if you want to change the command execution timestamp shown in the history command output.You can set one of the optional three formats:"mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"or set a custom format using the strftime function format specifications,see 'man strftime' for details.HIST_STAMPS="mm/dd/yyyy"Would you like to use another custom folder than $ZSH/custom?ZSH_CUSTOM=/path/to/new-custom-folderWhich plugins would you like to load?Standard plugins can be found in $ZSH/plugins/Custom plugins may be added to $ZSH_CUSTOM/plugins/Example format: plugins=(rails git textmate ruby lighthouse)
Example format: plugins=(rails git textmate ruby lighthouse)Add wisely, as too many plugins slow down shell startup.plugins=(git zsh-autosuggestions zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh User configurationFor brew, at leastexport PATH=/usr/local/bin:$PATH# NVM Stuffexport NVM_DIR="$HOME/.nvm". "$(brew --prefix nvm)/nvm.sh"export MANPATH="/usr/local/man:$MANPATH"You may need to manually set your language environmentexport LANG=en_US.UTF-8Preferred editor for local and remote sessionsif [[ -n $SSH_CONNECTION ]]; thenexport EDITOR='vim'elseexport EDITOR='mvim'fiCompilation flagsexport ARCHFLAGS="-arch x86_64"
fiCompilation flagsexport ARCHFLAGS="-arch x86_64"Set personal aliases, overriding those provided by oh-my-zsh libs,plugins, and themes. Aliases can be placed here, though oh-my-zshusers are encouraged to define aliases within the ZSH_CUSTOM folder.For a full list of active aliases, run
|
**Do you want to request a feature or report a bug *
I would like to report a bug
What is the current behavior?
when using
yarn global add
, everything installs as needed, but my shell cannot find the command to use the tool.E.g.
The command isn't found in bash either.
If the current behavior is a bug, please provide the steps to reproduce.
Content of my .zshrc:
content of my .bashrc
This works fine when using npm, just not when using yarn.
I am on an HP Laptop running Ubuntu 18.04, node version 10.9.0.
Any help is really appreciated. I've been fighting with this for months now!
The text was updated successfully, but these errors were encountered: