dthree/vorpal

[for discussion] move default localStorage location under $HOME

Open

#122 aperta il 1 mar 2016

Vedi su GitHub
 (11 commenti) (3 reazioni) (0 assegnatari)JavaScript (313 fork)batch import
bughelp wanted

Metriche repository

Star
 (5609 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

i ran into a problem when trying out your cash project. With my nodejs/npm setup, global installs require sudo: sudo npm i -g cash

however, because of that, cash doesn't have permissions to write to its own localstorage directory:

$ cash
fs.js:794
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: EACCES: permission denied, mkdir '/Users/tenaciousmv/npm/lib/node_modules/cash/node_modules/vorpal/dist/.local_storage'

obviously i don't want to run cash with sudo :)

isn't it more typical to put this kind of storage in ~/.vorpal or ~/.cash or somewhere else under $HOME?

Guida contributor