System report (output of prompt_pure_system_report):
zsh: command not found: prompt_pure_system_report
Other information
If you can't load Pure to create a system report, please report the following information:
Pure version: 1.22.0 most likely
ZSH version: 5.8
Terminal program & version: macOS Terminal & SSH
Operating system: Ubuntu 20.04.6 LTS x86_64
ZSH framework: I have Oh-my-zsh installed
Yarn: 1.21.1
I have:
[ ] Tested with another terminal program and can reproduce the issue:
[ ] Followed the integration instructions for my framework
Problem description
If one installs yarn and not npm it gives the following error:
➜ ~ yarn global add pure-prompt
yarn global v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /home/lena/.config/yarn/global/node_modules/pure-prompt: Command failed.
Exit code: 127
Command: if [ -e /opt/homebrew/bin/zsh ]; then PURE_DEST=/opt/homebrew/share/zsh/site-functions npm run --silent postinstall-link && exit 0; elif [ -e /usr/local/bin/zsh ]; then PURE_DEST=/usr/local/share/zsh/site-functions npm run --silent postinstall-link && exit 0; elif [ -e /bin/zsh ] || [ -e /usr/bin/zsh ]; then for dest in /usr/share/zsh/site-functions /usr/local/share/zsh/site-functions; do if [ -d $dest ]; then PURE_DEST=$dest npm run --silent postinstall-link && exit 0; fi; done; fi; PURE_DEST="$PWD/functions" npm run --silent postinstall-link && npm run --silent postinstall-fail-instructions
Arguments:
Directory: /home/lena/.config/yarn/global/node_modules/pure-prompt
Output:
/bin/sh: 1: npm: not found
/bin/sh: 1: npm: not found
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Reproduction steps
Install only yarn and not npm
Execute yarn global add pure-prompt
My .zshrc:
I am pretty sure it isn’t relevant here since yarn isn’t zsh during the installation.
General information
System report (output of
prompt_pure_system_report
):zsh: command not found: prompt_pure_system_report
Other information
If you can't load Pure to create a system report, please report the following information:
I have:
Problem description
If one installs yarn and not npm it gives the following error:
Reproduction steps
yarn global add pure-prompt
My
.zshrc
:I am pretty sure it isn’t relevant here since yarn isn’t zsh during the installation.