Question: How do I make nyc visible to zsh?
Steps to recreate:
- I tried
yarn add nyc -g
(I was following steps that used npm so I just replacednpm i
withyarn add
) - Then ran
nyc report --reporter=html
zsh: command not found: nyc
- However, when I ran
npx nyc --help
, I got a full list of nyc functions! - Then I tried
yarn add -D
(from the official nyc documentation) - Then ran
nyc report --reporter=text-lcov
. Once again:
zsh: command not found: nyc
nyc
installed in? Is that directory on your path? – Saeger/usr/local/bin/nyc
, but I don't know where it was before. – Karinakarine