can't install when using zsh-nvm
ralyodio opened this issue · comments
$ npm install --global cabal
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules'
npm ERR! }```
it should be looking in `~/.nvm`
try npx global-install cabal
see global-install for more
my node was messed up. I fixed it by using zsh-nvm
and re-installing.
its working.