dthree / dthree/vorpal

[for discussion] move default localStorage location under $HOME

Open
#122 11 comments 3 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
5.6k
Forks
278
PR merge metrics
No merged PRs in 30d

Description

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:

``` bash
$ 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`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.