From b3c004b89541b4fd1b657d1f0347da5a61638090 Mon Sep 17 00:00:00 2001 From: Anders Evenrud Date: Sat, 11 Apr 2020 00:11:00 +0200 Subject: [PATCH] Added default package installation path (#106) --- src/packages.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages.js b/src/packages.js index 7bd6d8cb..df123f0b 100644 --- a/src/packages.js +++ b/src/packages.js @@ -342,11 +342,13 @@ export default class Packages { * @param {string} url URL to package * @param {options} [options] * @param {boolean} [options.system] Install as system package + * @param {string} [options.root] Root installation path */ install(url, options = {}) { const body = { url, options: Object.assign({}, { + root: 'home:/.packages', system: false }, options) };