diff options
author | claudiahdz <cghr1990@gmail.com> | 2020-04-20 20:31:42 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-05-08 04:12:58 +0300 |
commit | e57a99113ca6ab41b7c325830f22f261a4260f89 (patch) | |
tree | 1acde8ac42473a3aa363766c4eab5e1f639128bc /lib/ci.js | |
parent | 28184a4609252dc4c6edcc047b8778935b81d1bb (diff) |
ci: add error on ci for global packages
Diffstat (limited to 'lib/ci.js')
-rw-r--r-- | lib/ci.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,10 +19,13 @@ function cmd(cb) { } async function ci () { - const where = npm.flatOptions.global - ? globalTop - : npm.prefix + if (npm.flatOptions.global) { + const err = new Error('`npm ci` does not work for global packages') + err.code = 'ECIGLOBAL' + throw err + } + const where = npm.prefix const arb = new Arborist({ ...npm.flatOptions, path: where }) try { |