Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Trouble install on macOS after zsh update #211

Closed
johnjjung opened this issue Feb 19, 2020 · 1 comment
Closed

Trouble install on macOS after zsh update #211

johnjjung opened this issue Feb 19, 2020 · 1 comment

Comments

@johnjjung
Copy link

Steps to reproduce

After macOS Catalina update npm install -g @feathersjs/cli would not work.

It would say zsh: command not found: feathers

Then I checked to see if it was nvm. nvm looked like it was working but was not switching from system to v12.13.0 properly and reinstalling nvm would not work. It looks like if you're using zsh now, you have to install zsh-nvm modules. See below for solution.

Expected behavior

Tell us what should happen

npm install -g @feathersjs/cli should have installed properly.

Actual behavior

Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.
For some reason nvm wouldn't switch and reinstalling nvm would not work.

Module versions (especially the part that's not working):

NodeJS version:
nvm v12.13.0

Operating System:
macOS Catalina - Update after zsh became default

SOLUTION:

Had to install zsh modules (zsh-nvm)

http://www.boekhoff.info/how-to-install-nodejs-and-npm-using-nvm-and-zsh-nvm/

After installing it make sure your nvm still works, then reinstall npm install -g @feathersjs/cli

@johnjjung
Copy link
Author

Update

Looks like it's a npm prefix issue with zsh as well.

nvm-sh/nvm#606

npm config get prefix

compare this with your node and npm by doing:

which node
which npm

Edit the prefix in your ~/.npmrc and fix that prefix

Sucks that this took all morning to fix - hopefully it'll help someone else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant