mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-26 09:35:53 +03:00
[GH-ISSUE #88] --user doesn't put config files in the right place? #67
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Meekohi on GitHub (Aug 7, 2013).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/88
On my system I have to install global packages with sudo, but
sudo npm install -g log.io --user 'michael'still installs config files in
/root/.log.io/instead of~michael/.logio/@bnair commented on GitHub (Jan 28, 2014):
I'm having the same issue. I can't find any npm documentation that states --user is an npm flag. Should it be handled by the cakefile?
@bnair commented on GitHub (Jan 28, 2014):
so I found a workaround. The problem seems to be that environment isn't preserved when sudoing. So this works:
sudo -E npm install -g log.io --user 'vagrant'
@kostajh commented on GitHub (Feb 19, 2014):
+1 for @bnair's solution. Perhaps
sudo -E npm install -g log.io --user $USERshould be added to the installation instructions?@msmathers commented on GitHub (Aug 1, 2014):
I'm unable to reproduce this using node v0.10.29 and npm v1.4.23. No
-Eflag is necessary with the latest versions of each.