Skip to content

memtrace install needs sudo, but CLI hint does not mention it #72

Description

@MartinJepsen

Starting memtrace when an update is available gives this:

[memtrace] Update available: 1.1.1 → 1.1.3
           Run: memtrace install   (upgrades + can chain commands, e.g. `memtrace install start`)

However, without sudo memtrace install, I get this:

Proceed with these changes? [y/N] y
memtrace: fetching latest from npm registry…
npm error code EACCES
npm error syscall rename
npm error path /usr/lib/node_modules/memtrace
npm error dest /usr/lib/node_modules/.memtrace-9mG6rTOt
npm error errno -13
npm error Error: EACCES: permission denied, rename '/usr/lib/node_modules/memtrace' -> '/usr/lib/node_modules/.memtrace-9mG6rTOt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions